$.
ajax({
type: "POST",
url: config.
url,
//请求地址
contentType: "application/json; charset=utf-8",
//请求类型
data: JSON.
stringify(GetJsonData()),
//传入组装的参数
dataType: "JSON",
//返回参数
success: function (results) {
console.
log(results);
if (results.
result == "success") {
//alert(results.result);
}
else if (results.result
== "该用户不存在") {
alert("该用户不存在");
}
}
});
//发生的json参数
function GetJsonData() {
var json = {
};
return json;
}
转载请注明原文地址: https://www.6miu.com/read-38193.html