- 博客(1)
- 收藏
- 关注
转载 vue-router的HTML5 History 模式
vue-router 默认 hash 模式 —— 使用 URL 的 hash 来模拟一个完整的 URL,于是当 URL 改变时,页面不会重新加载。如果不想要很丑的 hash,我们可以用路由的 history 模式,这种模式充分利用 history.pushState API 来完成 URL 跳转而无须重新加载页面。const router = new VueRouter({ mode:
2017-07-03 11:11:29 287
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人