首页 > 编程知识 正文

vuejs获取url参数,vue获取请求路径

时间:2023-05-03 10:03:43 阅读:283475 作者:4349

加入url为https://www.aaa.com/aaa?code=xxx 安装qs模块 npm i qs hash模式 import Qs from 'qs'const query = Qs.parse(location.hash.substring(3)) hostory模式 import Qs from 'qs'const query = Qs.parse(location.search.substring(1))

版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。