Vue2.0—相关面试题

一、active-class是那个组件的属性?嵌套路由怎么定义?css 答:vue-router模块的router-link组件。html 二、怎么定义vue-router的动态路由?怎么获取传过来的动态参数?vue 答:在router目录下的index.js文件中,对path属性加上:/d  使用router对象的params.idnode 三、vue-router有哪几种导航钩子?webpac
相关文章
相关标签/搜索