我的AJAX调用是:得到“错误:jQuery111306513629604596645_1434294948077未被调用”错误时,跨域AJAX调用?
$.ajax({
method: "GET",
contentType: "application/json; charset=utf-8",
url: "http://localhost:8080/viewalldoctorprofile",
dataType: 'jsonp',
crossDomain: true,
success : function(json){
alert("24254");
},
error: function (xhr, ajaxOptions, thrownError) {
alert(xhr.status);
alert(thrownError);
}
});
我可以看到结果JSON在检查元素在浏览器中,但我发现了一个错误:
Error: jQuery111306513629604596645_1434294948077 was not called
请帮助我。预先感谢您