$.ajax({
url:"${APP_PATH}/user/dologin",
type:"POST",
data: {
email: loginEmail,
password:loginpwd
},
success: function (result) {
alert("操作成功!");
if (result.code==1) {
$(window).attr("location","/index.jsp");
}else if (result.code == 2) {
$(window).attr("location","/applicant/resumeGuide.jsp");
}else if (result.code == 3) {
alert("您还没有进行注册,请先注册!");
/*两种跳转方式的不同*/
/* window.location="/index.jsp";*/
/*window.location.href="register";*/
}
},
error:function () {
alert("程序出错");
}
});
jquery中的ajax请求,以及跳转方式的记录
最新推荐文章于 2024-08-09 17:26:52 发布