大家好,我是满心
小玩意儿,有时候会用到,先记录一下吧
按键盘上F12
,或者鼠标右键检查
打开开发者模式,在console
控制台中输入以下内容:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
| var timeout = prompt("设置刷新时间间隔[S]");
var current = location.href;
if(timeout > 0) { setTimeout('reload()', 1000 * timeout); } else { location.replace(current); }
function reload() { setTimeout('reload()', 1000 * timeout); var fr4me = '<frameset cols=\'*\'>\n<frame src=\'' + current + '\' />'; fr4me += '</frameset>';
with(document) { write(fr4me); void(close()); }; }
|
还可以修改var current = location.href
中的location.href,实现刷新指定页面,
eg:> var current = “https://baidu.com“
在弹出的窗口中,输入具体时间(秒),即可实现自动刷新网页
让浏览器中的网页自动刷新
本文是文章,版权归原作者所有。建议访问原文,转载本文请联系作者