摘要: 一、路由的模式 第一种用history方式实现,HTML5使用window.history.pushState()实现路由的切换而不刷新页面。 第二种使用hash值的方式来实现。 vue2.0两种都可以使用只需要在配置路由时加上 mode:'history/mode' vue2.0默认为hash模式 阅读全文
posted @ 2018-01-15 12:03 前端++ 阅读(153) 评论(0) 推荐(0) 编辑