ben, yeni jQuery 3. Aşağıdaki jQuery önceki sürümleri ile çalışan, temel bir fiddle olmakla konsolunda jQuery 3jQuery 3 ince ajax temel örnek
$(function() {
$.ajax({
url: '/echo/json',
type: 'GET',
dataType: 'json',
success: function(data) {
console.log(data)
}
});
})
ile çalışmıyor değilim bu hatayı alın:
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(…)
Neden?
[Sadece değişiklikler hakkında okumak] (https://jquery.com/upgrade-guide/3.0/#ajax) – GillesC
Eğer @DavidJorHpan jquery dosyası –
ile bağladınız mı evet tabii var –