标签:
ajax请求:
var data =‘{"useName":"‘+name+‘",}‘
$.ajax({
type:"post",
url:"",
data:"",
datatype:"jason",
contentType:"application/jason",
success:function(data){
i=0;
if(data.errCode==0){
dialog.success("提交成功!");
}else{
dialog.error("data.errMsg");
}
}
eerror:function(){
i=0;
dialog.error("服务器异常,请联系管理员");
}
});
标签:
原文地址:http://www.cnblogs.com/callmesoysauceJun/p/5972478.html