路由跳转

JavaScript

vue路由跳转的三种方式是什么

184 0

跳转方式:1、使用“<router-link to='跳转页面路径>”语句;2、使用“this.$router.push({ path:’/user’})”语句;3、使用“this.$router.replace{path:'/'}”语句。本教程操作环境:windows7系统、vue2.9.6版,DELL G3电脑。router-view 实现路由内容的地方,引入组件时写到需要引入的地方需要