vue怎麼獲取當前的路徑,參數等信息

例子: 有一個路徑:http://school/#/business/syllabus/50779this this.$route.params.id 能夠獲取路由最後參數 50779路由 this.$route.params.path 能夠獲取到根路徑下的整個路徑 business/syllabus/50779get this.$route還有一些其餘的參數,具體能夠本身動手 console.l
相關文章
相關標籤/搜索