87,916
社区成员
发帖
与我相关
我的任务
分享
if (flag != null && flag == 1) {
alert(flag);
setTimeout(redict(),5000);
}
function redict(){
alert("123");
window.location="http://10.98.94.118:8093/jforum_test/posts/list/207.page";
}
if (flag != null && flag == 1) {
alert(flag);
window.setTimeout(function(){redict},5000);
// setTimeOut(location.href="http://10.98.94.118:8093/jforum_test/posts/list/207.page",10000);
}
function redict(){
alert("123");
window.location="http://10.98.94.118:8093/jforum_test/posts/list/207.page";
}
var flag=getQueryString("flag");
var url=getQueryString("url");
if (flag != null && flag == 1) {
alert(flag);
setTimeout(redict,5000);
}
function redict(){
alert("123");
window.location="";
}
[/quote]
试一下getQueryString("flag")的返回值是否为1,本地测试var flag=1;代码正常
var flag=getQueryString("flag");
var url=getQueryString("url");
if (flag != null && flag == 1) {
alert(flag);
setTimeout(redict,5000);
}
function redict(){
alert("123");
window.location="";
}
if (flag != null && flag == 1) {
alert(flag);
setTimeout(redict,5000);
}
function redict(){
alert("123");
window.location="****";
}
[/quote]这个出什么问题呢if (flag != null && flag == 1) {
alert(flag);
setTimeout(redict,5000);
}
function redict(){
alert("123");
window.location="****";
}