jquery $.ajax方法

$.ajax({
timeout: 3000,
cache:false,
global:false,
type: "POST",
url: WEB_URL+"/logic/private/",
data: {
entry:"privatelist",
operation:"get",
userid:$.cookie('userid'),
token:$.cookie('token')
},
dataType: "JSON",
beforeSend: function(XMLHttpRequest){
$.blockUI({ message: $('#loadmsg') });
},
success: function(data){
if(data.info==1)
{
refreshPersonInfo(data);
}else{
showErr(data.tips);
} },
complete: function(XMLHttpRequest){
$.unblockUI();
},
error: function(){alert("本次数据请求错误,请刷新页面后重试!");} });
上一篇:一个小时学会 MySQL 数据库


下一篇:如何从本地远程访问虚拟机内的Mysql服务器?