Vue-Router核心原理实现(文末附手写版源码)
VueRouter的核心原理一、VueRouter的核心组成部分主要实现以下几部分:modethis.router/this.router/this.router/this.routerouter-link/router-viewVue.use注册插件1、mode在vueRouter中,主要分为两种模式,一种是hash,一种是history。hash模式是通过监听...
原创
2020-01-01 18:24:38 ·
816 阅读 ·
2 评论