62,025
社区成员
发帖
与我相关
我的任务
分享
$.ajax({
type: "post",
url: url,
data: param,
dataType: "JSON",
beforeSend: function () {
var win = $.messager.progress({
title:'提示',
msg:'正在加载数据...'
});
setTimeout(function(){
$.messager.progress('close');
},2000)
},
complete: function (XHR, TS) {
$.messager.progress('close');
if (objparam==1) {
alert(JSON.parse(XHR.responseText).total);
}
},
success: function (data) {
alert(data);
}
});
我上面代码的提示,这里你可以加载一张图片