hash模式:

https://segmentfault.com/a/1190000011956628#articleHeader2

这种 `#`。后面 hash 值的变化,并不会导致浏览器向服务器发出请求,浏览器不发出请求,也就不会刷新页面。另外每次 hash 值的变化,还会触发 `hashchange` 这个事件,通过这个事件我们就可以知道 hash 值发生了哪些变化。

前端路由

相关文章:

  • 2022-01-01
  • 2022-12-23
  • 2021-05-13
  • 2021-06-08
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-06-07
相关资源
相似解决方案