日期:2014-05-16 浏览次数:20768 次
$.ajaxSetup({
async: false
});
$.post("control.php",
{
username1:username1.value,
password1:password1.value
},
function(data,status){
if (data=="密码错误")
{alert("密码错误");}
else if(data=="用户名不存在")
{alert("用户名不存在");}
else if(data=="tongguo")
{alert("验证通过");//这个alert都能弹出来,但下一句就是跳转不了,URL也不变,单引号双引号
// 没引号都试过了。。
window.location.href='view.php';
}
else{alert("未知错误,验证失败");}
});
alert("验证通过");
window.location.href='view.php';
alert('===========')/////////看能执行到这句没有