vue-router
文章平均质量分 58
vue-router
hpz1223
这个作者很懒,什么都没留下…
展开
-
Vue中Router跳转打开新标签页
使用router.resolve打开新标签页原创 2024-03-10 20:07:28 · 2630 阅读 · 0 评论 -
Vue中vue-router的 hash 模式和 history 模式的区别
**hash 模式** 1. hash 模式的 url 地址中带有 `#` 号 2. hash 模式通过 `window.onhashchange` 方法监听路由的修改 3. hash 模式下刷新请求时 url `#` 后面的内容会被忽略,不会被发送给服务器**history模式** 1. history 模式是使用正常的 url 路径显示 2. history 模式通过 pushState 和 replaceState 方式修改路由改变原创 2023-11-13 14:46:25 · 92 阅读 · 0 评论