ajax-json-function
发布时间:2020-12-16 03:28:17 所属栏目:百科 来源:网络整理
导读:$.ajax({ url: "../../UserInfoServlet",type: "post",data: "checkByName=" + name + "currentPage=" + index + "PageSize=" + size+"doaction=userListTest",dataType: "json",beforeSend: function(){ //开始显示等待的图片 $("#gifDiv").html("img src='
$.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(""); } }); (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |