js刷新页面

1、location.reload();

刷新当前文档、类似于你浏览器上的刷新页面按钮

2、window.location.replace("http://www.runoob.com")

用一个新文档取代当前文档

3、<meta http-equiv="refresh" content="5">

页面自动刷新:代码加入<head>区域中。其中5指每隔5秒刷新一次页面

来源:https://www.runoob.com/w3cnote/js-refresh-current-page.html

原文地址:https://www.cnblogs.com/fangxinliu/p/14028504.html