页面刷新
- history.go(0)
- location.reload()
- location=location
- location.assign(location)
- location.replace(location)
- location.href=location.href
页面跳转
- window.navigate("top.html")
- window.document.location.href="top.html"
- window.document.location="top.html"
- window.location.href="top.html"
- window.location="top.html"
- window.open('地址', '_blank') // _blank代表跳转到新页面
- document.location.href="top.html"
- document.location="top.html"
- location.href="top.html"
- location.replace("top.html")