document.location.reload();会重新加载页面,onload事件会被触发。

location.href='xxx'刷新页面,onload事件不会触发。

相关文章:

  • 2022-02-05
  • 2022-12-23
  • 2021-12-13
  • 2021-08-04
  • 2022-12-23
  • 2022-12-23
  • 2021-08-12
  • 2021-07-30
猜你喜欢
  • 2022-12-23
  • 2022-03-07
  • 2021-10-08
  • 2022-12-23
  • 2022-12-23
  • 2021-12-14
相关资源
相似解决方案