利用chrome的console控制台自动刷新网页
时间:2017-3-16 14:18 作者:admin 分类: 杂七杂八
timeout=prompt("Set timeout "); current=location.href; if(timeout>0) setTimeout('reload()',1000*timeout); else location.replace(current); function reload(){ setTimeout('reload()',1000*timeout); fr4me='<frameset cols=\'*\'>\n<frame src=\''+current+'\'/>'; fr4me+='</frameset>'; with(document){write(fr4me);void(close())}; }
利用chrome的console控制台自动刷新网页,偶尔需要这个功能,不需要使用插件,太臃肿...
扫描二维码,在手机上阅读
评论:
218.14.211.* 2021-10-21 17:19
thanks,谢谢,管用。