vue路由
文章目录
一、App.vue中的<router-view></router-view>
凡是定义到index.js中的组件,都会被渲染到App.vue中
二、路由跳转和a标签的区别
a标签是用来跳其他链接或者锚点;
页面跳转一般用this.$router.push/replace,或者使用router-link标签。
凡是定义到index.js中的组件,都会被渲染到App.vue中
a标签是用来跳其他链接或者锚点;
页面跳转一般用this.$router.push/replace,或者使用router-link标签。
评论
登录后参与技术讨论,分享你的经验与见解。
登录 / 注册暂无评论