history.go(-n) 返回上一页(n 为返回前几页)

window.location.reload(); 刷新当前页面

history.go(-1);window.locatoin.reload();  等效于 self.location = document.referrer   返回上一页并刷新

window.location.href = ''; 跳转到其它页面

self.location

刷新的几种方法:

history.go(0)
location.reload()
location = location
location.assign(location)
document.execCommand('Refresh')
window.navigate(location)
location.replace(location)
document.URL = location.href

<meta http-equiv="refresh" content="10;url=http://www.baidu.com"> 10秒后跳转到百度

相关文章:

  • 2021-12-31
  • 2022-01-08
  • 2022-02-08
  • 2021-09-24
  • 2022-02-11
  • 2021-12-31
  • 2022-02-24
猜你喜欢
  • 2021-12-14
  • 2022-12-23
  • 2021-10-22
  • 2021-12-31
  • 2022-02-08
  • 2021-12-31
  • 2021-12-31
相关资源
相似解决方案