添加时间戳给callbackId
$.ajax({
type: "get",
url: url,
timeout: 6000,
data: param,
cache: false,
dataType: "jsonp",
jsonpCallback: "jsoncallback" + new Date().getTime(),
success: function(data) {
if (data != null) {
fun(data);
}
},
error: function() {
Fui.loading.hide();
Fui.tips(‘网络错误,请重试‘, ‘success‘);
}
});
jsonp多次请求报错 not a function的解决方法
原文:http://www.cnblogs.com/jdhu/p/4355975.html