t-7.3s后跳转到指定url

1.在head 里添加下面代码

<meta http-equiv="refresh" content="3;URL=http://www.baidu.com">

<meta http-equiv="refresh" content="3;URL=/swt/swt.html">

2.settimeout  3s后打开

window.setTimeout(window.location.href='http://www.baidu.com',1000);
window.setTimeout(window.location.href='/swt',1000);



posted @ 2018-05-20 17:43  一叶知秋韵  阅读(77)  评论(0编辑  收藏  举报