1、这样代码时间无效,会直接跳转
setTimeout(window.location.href='http://www.qwbm.com/',3000);
2、这样是正常的解决方案
setTimeout(function() { window.location.href = 'http://www.qwbm.com/'; }, 5000 );
1、这样代码时间无效,会直接跳转
setTimeout(window.location.href='http://www.qwbm.com/',3000);
2、这样是正常的解决方案
setTimeout(function() { window.location.href = 'http://www.qwbm.com/'; }, 5000 );