$.ajax({
url:url+".json",
type: "post",
data:user,
async:false,
dataType: "jsonp",
success:function(data){
if("0" == data.msg){
//用户不存在可以注册
regusername = 2;
}else {
//用户已经存在不能注册
regusername = 3;
}
}
});
url:url+".json",
type: "post",
data:user,
async:false,
dataType: "jsonp",
success:function(data){
if("0" == data.msg){
//用户不存在可以注册
regusername = 2;
}else {
//用户已经存在不能注册
regusername = 3;
}
}
});