JS代码求解!! switch(location.host){case 'index.htm':location.href="bbs.php"break;}我想让它 5秒后执行location.href="bbs.php" 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 function Redirect(){switch(location.host){ case 'index.htm': location.href="bbs.php" break; } }setTimeout(Redirect,5000); setTimeout(函数名,时间(这里是毫秒)) switch(location.host){ case 'index.htm': setTimeout(function(){location.href="bbs.php"},5000); break; } 一个使我对javascript产生迷惑的问题。。 怎样返回ajax get 返回的结果? IE执行有效,SAFARI执行却无效,为何? 请教一个ModalDialog的问题,谢谢 浏览器关闭事件的问题,100分求助,同时大家可以探讨下 问个javascript的问题~window.location定时跳转的问题! 求一个有难度的正则表达式,字符串截位,有全角半角 能解码吗? nodejs如何按行读取文件 字符串截取方面的问题 判断是否已经加入收藏夹,如果没有就弹出加入收藏夹的提示 求js三级问题,每级都有默认值
switch(location.host){ case 'index.htm': location.href="bbs.php" break; }
}
setTimeout(Redirect,5000);
switch(location.host){ case 'index.htm': setTimeout(function(){location.href="bbs.php"},5000); break; }