![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
vue
bala巴拉
这个作者很懒,什么都没留下…
展开
-
我的vue.js学习之路(获取路由)
this.$route.params.id 可以获取路由最后参数 50779this.$route.params.path 可以获取到根路径下的整个路径 business/syllabus/50779this.$route还有一些其他的参数,具体可以自己动手 console.log(this.$route)打印出来看下--------------------- 本文来自 Day____...转载 2018-09-26 11:42:17 · 641 阅读 · 0 评论 -
我的vue.js学习之路(vue中router-link传参以及参数的使用)
方法一:<router-link :to="'/index/'+id">路径是:http://localhost:8080/#/index/1如果想使用参数,this.$route.params.id方法二:<router-link :to="{path:'/index',query: {name: id}}">路径是:http://localh...原创 2018-09-26 12:03:32 · 719 阅读 · 0 评论