将 Jquery 库从 1.4.4 升级到 1.7.2 后,这个 ajax 调用不再进入成功函数?有什么建议么?TIA
$.ajax({
type: 'GET',
async: true,
url: myURL,
dataType: 'json',
data: {},
beforeSend: function (xhr) {
// add basic authorization
xhr.setRequestHeader("Authorization", auth);
xhr.setRequestHeader("Accept", "application/json");
},
success: function (dataItem) {
//Do success work
},
complete: function (dataItem) {
//Do complete work
},
error: function (dataItem) {
//error message
}
}); // end $.ajax