나는 새로운 jQuery를 3. 다음은 jQuery를 이전 버전의 작업, 기본 fiddle이지만, 콘솔에서 jQuery를 3jQuery를 3 슬림 아약스 기본 예제
$(function() {
$.ajax({
url: '/echo/json',
type: 'GET',
dataType: 'json',
success: function(data) {
console.log(data)
}
});
})
작동하지 않습니다 해요 이 오류가 발생합니다 :
jquery-3.1.1.slim.min.js:2 jQuery.Deferred exception: $.ajax is not a function TypeError: $.ajax is not a function
jquery-3.1.1.slim.min.js:2 Uncaught TypeError: $.ajax is not a function(…)
왜?
[그냥 변화를 읽을] (https://jquery.com/upgrade-guide/3.0/#ajax) – GillesC
는 당신이 @DavidJorHpan JQuery와 파일 –
와 연결 한 예 물론이야 –