$.ajax({
url: "../../UserInfoServlet",
type: "post",
data: "checkByName=" + name + "¤tPage=" + index + "&PageSize=" + size+"&doaction=userListTest",
dataType: "json",
beforeSend: function(){
//开始显示等待的图片
$("#gifDiv").html("<img src='../../images/autoScan18.gif'/>正在加载数据,请稍候......");
},
error:function(){
alert('数据加载失败!');
dealFail();
},
success: function (data) {
dealSuccess(data);
},
complete: function(){
//结束显示等待的图片
$("#gifDiv").html("");
}
});
ajax-json-function
最新推荐文章于 2024-07-27 18:51:22 发布