珠f一線大廠前端面試題大匯總之Webpack專題
在跳轉(zhuǎn)過去的頁面,通過props
或者this.$route.params / this.$route.query
取參
props: {
? ?id: {
? ? ? ?type: String,
? ? ? ?default: ''
? ?},
? ?age: {
? ? ? ?type: String,
? ? ? ?default: ''
? ?}}<!--或者-->this.$route.querythis.$route.params
標(biāo)簽: