JS 获取 URL query string 参数

 

const url = new URL(link)
const value = url.searchParams.get('abc')

 

Link:https://www.cnblogs.com/farwish/articles/12729559.html

posted on 2020-04-19 01:39  ercom  阅读(805)  评论(0)    收藏  举报