首页 > Web开发 > 详细

Ajax调用

时间:2020-06-15 16:36:46      阅读:39      评论:0      收藏:0      [点我收藏+]

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调用

原文:https://www.cnblogs.com/ju0221/p/13131381.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!