获取url参数

例如

http:www.fyi.com?a=321&b=yui

方法

let a = router.currentRoute.value.query.a
let b = router.currentRoute.value.query.b
Logo

Vue社区为您提供最前沿的新闻资讯和知识内容

更多推荐