1.
window.location.Reload():刷新当前页面。window.location.Reload()会提示是否提交
2.
self.location.href="/url" 当前页面打开URL页面
location.href="/url" 当前页面打开URL页面
windows.location.href="/url" 当前页面打开URL页面,前面三个用法相同。
this.location.href="/url" 当前页面打开URL页面
parent.location.href="/url" 在父页面打开新页面
top.location.href="/url" 在顶层页面打开新页面
来源:博客园
作者:呆萌聪
链接:https://www.cnblogs.com/tongcc/p/11773763.html