Vue文件跳转$router传参数
<button @click = "func()">跳转</button> //js <script> export default{ methods:{ func (){ this.$router.push({path: '/order/b',query:{ price:69.00 }}); } } } </script>
起点在哪,或许选择不了。重要的是,你追求的终点在哪!
<button @click = "func()">跳转</button> //js <script> export default{ methods:{ func (){ this.$router.push({path: '/order/b',query:{ price:69.00 }}); } } } </script>