Vue 路由傳參方式和路由監聽

this.$router.push傳遞參數有2種方式: 傳遞參數  -- this.$router.push({path: ' 路由 ', query: {key: value}}) 參數取值  -- this.$route.query.key 使用這種方式,傳遞參數會拼接在路由後面,出現在地址欄. path---------》query   傳遞參數  -- this.$router.push(
相關文章
相關標籤/搜索