$.ajax({
url: “/api/banchang/EmpTble/Login2”,
type: ‘Post’,
data: JSON.stringify({
Emppassword: pass,
EmpName: name
}),
contentType: ‘application/json’,
beforeSend: function () {
// 禁用按钮防止重复提交
/* $(“#create”).attr({ disabled: “disabled” });/
},
success: function (res) {
/ $(“#create”).attr({ disabled: false });*/
if (res == “0”) {
location.href = “/User/”;
} else {
layer.msg(res, {
icon: 2,
});
}
}
});
.net 后台接收