Iは、I以下は、jQueryの以前のバージョンで作業し、基本的なfiddleですが、jQueryの3コンソールでjQueryの3スリムなAJAXの基本的な例
$(function() {
$.ajax({
url: '/echo/json',
type: 'GET',
dataType: 'json',
success: function(data) {
console.log(data)
}
});
})
では動作しませんjQueryの3に新たなんですこのエラーが発生する:
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
あなたはjqueryのファイル –
に接続しまし@DavidJorHpanはい、もちろんのは、 –