首页 > 技术文章 > ajax跨域

siyecao2010 2019-07-05 17:49 原文

$.ajax({
url: 'url',
type : "GET",
dataType: "jsonp",
jsonp:"jsonpCallback",
success: function (data) {
console.log("aaaaa");
console.log("res",data);
},
err: function (err) {
console.log("err",err);
}
})

推荐阅读