1. document.location.reload() // 不好的地方: 如果是回发,会弹出一个是否重新提交的警告框。
2. Response.AddHeader("Refresh", "0") // 0秒自动刷新,不好的地方:你还是可以感觉到是被刷新。
3. Response.Redirect(Request.Url.AbsoluteUri); // 重定向到当前页面。

4. 如果回发了一次,那么使用document.location.reload(),会弹出一个是否重新提交的警告框。而使用window.location.href = window.location.href则不存在这个问题。

相关文章:

  • 2021-10-14
  • 2021-07-15
  • 2021-08-05
  • 2021-12-08
  • 2021-09-08
  • 2022-01-22
  • 2021-11-05
  • 2021-10-19
猜你喜欢
  • 2021-12-28
  • 2022-02-21
  • 2022-12-23
  • 2021-12-15
  • 2021-06-05
  • 2022-03-04
相关资源
相似解决方案