摘要: 在说vue路由钩子函数之前,我先介绍一下路由的两种模式: const router = new VueRouter({ mode: 'history', mode: 'hash', }) 1.hash模式 hash模式背后的原理是onhashchange事件,可以用window.onhashchan 阅读全文
posted @ 2020-12-30 15:21 ZJTL 阅读(1368) 评论(0) 推荐(0) 编辑