
$.ajax({
type: "GET",
url: "https://owlbot.info/api/v4/dictionary/owl",
beforeSend: function (xhr) {
xhr.setRequestHeader("Authorization", "Token 634894d82af32b3624ed4a5a0ad0ea2924d4cb6f");
},
data: {},
error: function (xhr, status, error) {
alert("에러 발생!");
},
success: function (response) {
console.log(response)
}
})
콘솔창에서 ajax콜 하면 아래 오류가 뜨는 이유 알수 있을까요?
VM608:1 Uncaught TypeError: $.ajax is not a function
at <anonymous>:1:3
(anonymous) @ VM608:1
