摘要: 本文主要介绍vue-router传参数的两种方式: 1、get方式 页面跳转 this.$router.push({path:'/xxx',query:{id:1}});//类似get传参,通过URL传递参数 新页面接收参数 this.$route.query.id 2、post方式 页面跳转 // 阅读全文
posted @ 2019-10-18 14:13 石头记1 阅读(5904) 评论(0) 推荐(0)