如果组件通过query来传递num参数为1,相当与在 url 地址后面拼接参数
这是子路由中通过 this.$route.query.num 来显示传递过来的参数URL显示(http://localhost:8080/#/home/chee?num=1)
lanseshuai 博主文章分类:vue2.0路由一些事情 ©著作权
如果组件通过query来传递num参数为1,相当与在 url 地址后面拼接参数
这是子路由中通过 this.$route.query.num 来显示传递过来的参数URL显示(http://localhost:8080/#/home/chee?num=1)
上一篇:react基础语法(五) state和props区别和使用
下一篇:vue组件独享守卫钩子函数参数详解(beforeRouteEnter、beforeRouteUpdate、beforeRouteLeave)
Vue3 路由传参
vue:学习心得这里咕咕在b站看得尚硅谷的视频,大概花了8天左右,其中有点代码
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M