题海让大学四年没有难题
白天模式登陆

题目详情

单选题 若跳转时传递数组参数(如['华为', '苹果', '小米']),目标页获取参数的正确写法是( )

A. @State brands: string[] = router.getParams()

B. @State brands: string[] = router.getParams() as string[]

C. @State brands: string[] = router.getParams('brands')

D. @State brands: string[] = router.getParams().brands

学科:默认课程

时间:2025-11-27 10:32:18

Copyright © 2022 津ICP备2021001502号