珠f一线大厂前端面试题大汇总之Webpack专题
在跳转过去的页面,通过props
或者this.$route.params / this.$route.query
取参
props: {
id: {
type: String,
default: ''
},
age: {
type: String,
default: ''
}}<!--或者-->this.$route.querythis.$route.params