vue路由跳转【点击查看详情】
router-link(声明式路由):1、不带参数<router-link :to="{name:'home'}"><router-link :to="{path:'/home'}"> //namepath都行, 建议用name//;2、带参数<router-link{id:1}}">。
相关视频/文章