$.ajax({
type : "get",
async:false,
url : "",
dataType : "jsonp",//
jsonp: "jsonpCallback",//
success : function(data){
alert("OK");
var t= JSON.parse(data);
$("#showopen").text("Result:"+t);
},
error:function(){
console.log('fail');
}
});
jsonp使用
最新推荐文章于 2021-12-23 16:41:15 发布