Ajax调用

var params = { "username": username, "userpwd": userpwd};
$.ajax({
url: "../Ashx/LoginSubmit.ashx?method=CheckLogin",
data: params,
type: "post",
success: function (data) {
if (data != null && data == "success") {
location.href = "index.aspx";
return true;
}
else if (data != null && data == "err") {
location.href = "../View/404.html";
return false;
}
}
});

Ajax调用

上一篇:ajax 请求限制 jsonp 解决同源限制问题


下一篇:安装Net-Tools到CentOS(YUM)