사장님 .. 아니 선생님 Ajax 요청하기 2강에서
$('.btn-danger').click(function () {
$.ajax({
url: 'https://codingapple1.github.io/hello.txt',
type: 'GET'
}).done(function (데이터) {
$('#hello').html(데이터);
});
});
요렇게 해서 버튼을 클릭해도 html이 바뀌지 않고 콘솔창에 이런 에러가 뜨네요..
인터넷에 쳐 보니 Lowercase 라는 뭐 그런 말도 있고 한데 궁금합니다..
Uncaught TypeError: $.ajax is not a function
at HTMLButtonElement.<anonymous> (ajax.html:33)
at HTMLButtonElement.dispatch (jquery-3.6.0.min.js:2)
at HTMLButtonElement.v.handle (jquery-3.6.0.min.js:2)