jq.ajax({
type:"get",
url:"../ashx/store.ashx",
data:"m=4&userName="+UN+"&trueName="+TN+"&psw="+PSW+"&qq="+QQ+"&ID="+id+"&usertype="+UT+"&sex="+SEX
+"&tel="+TEL+"&addr="+ADDR+"&code="+CODE+"&email="+EL+"&question="+QT+"&answer="+AS,
async:false,
success:function(msg)
{
var temp=eval("("+msg+")");
alert(temp.message);
if(temp.code==1)
window.location.href ="default.html";
}
})
请大家帮我分析下,这个页面跳转为什么没用呢?是因为引用了“jq.ajax”就无效了吗?应该怎么写啊?
type:"get",
url:"../ashx/store.ashx",
data:"m=4&userName="+UN+"&trueName="+TN+"&psw="+PSW+"&qq="+QQ+"&ID="+id+"&usertype="+UT+"&sex="+SEX
+"&tel="+TEL+"&addr="+ADDR+"&code="+CODE+"&email="+EL+"&question="+QT+"&answer="+AS,
async:false,
success:function(msg)
{
var temp=eval("("+msg+")");
alert(temp.message);
if(temp.code==1)
window.location.href ="default.html";
}
})
请大家帮我分析下,这个页面跳转为什么没用呢?是因为引用了“jq.ajax”就无效了吗?应该怎么写啊?
alert(temp.code+"|长度: "+strLen(temp.code));
$.ajax{
}
parseInt(temp.code)==1
window.location.href='/default.html';
}
这样试过了??也没用?
Lz,你到底是干脆没跳转,还是跳转了,但那个页面不是你真正要跳转的页面?
上面怎么说那么多关于路径的干嘛?
alert('执行了吗?');
}