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;
}
}
});
相关文章
- 10-08vue调用高德地图:vue-amap
- 10-08调用高德地图Api
- 10-08调用搞得梯度
- 10-08在finally中调用一个需要await的方法
- 10-08python – 当supervisord调用时,Gunicorn会抛出OSError打开文件
- 10-08WebAPI 调用
- 10-08调试错误 由于函数的调用约定造成的错误
- 10-08函数调用约定
- 10-08Delphi 调用惯例 register, pascal, cdecl, stdcall, safecall 介绍
- 10-08函数调用约定