## 页面刷新 ~~~ history.go(0) location.reload() location=location location.assign(location) document.execCommand('Refresh') window.navigate(location) location.replace(location) document.URL=location.href ~~~ 1.页面自动刷新:把如下代码加入<head>区域中 ~~~ <meta http-equiv="refresh" content="20"> //其中20指每隔20秒刷新一次页面. ~~~ 2.页面自动跳转:把如下代码加入<head>区域中 ~~~ <meta http-equiv="refresh" content="20;url=http://www.kancloud.cn/"> ~~~ ## 返回并刷新页面 ~~~ history.go(-1),或 history.back(); ~~~ ## 页面跳转 ~~~ self.location='http://www.kancloud.cn/' ~~~