一、使用meta
1.頁面刷新<meta http-equiv="refresh" content="5">
2.頁面跳轉(zhuǎn)<meta http-equiv="refresh" content="5; url=http://www.reibang.com"/>
二思杯、使用js
- js頁面刷新方法
history.go(0)
location.reload()
location=location
location.assign(location)
document.execCommand('Refresh')
window.navigate(location)
location.replace(location)
document.URL=location.href
- js跳轉(zhuǎn)
window.location.href="target.aspx";
window.navigate("target.aspx");
window.location.replace("target.aspx");
self.location='target.aspx';
top.location='target.aspx';