console.log(this.$route.path)
友情提示:
$router
用来 *** 作对象,比如路由跳转的时候使用,即this.$router.push('xxxx')
$route
用来获取信息。比如获取当前路由this.$route.path
、获取路由传递的参数this.$route.query
欢迎分享,转载请注明来源:内存溢出
console.log(this.$route.path)
友情提示:
$router
用来 *** 作对象,比如路由跳转的时候使用,即this.$router.push('xxxx')
$route
用来获取信息。比如获取当前路由this.$route.path
、获取路由传递的参数this.$route.query
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)