window.location.href = 'https://mp.weixin.qq.com/wxamp/wacodepage/getcodepage?token=30000591&lang=zh_CN'

let search = window.location.href.split('?')[1] // "token=30000591&lang=zh_CN"
1
2
3

# querystring

# querystring.parse(str[, sep[, eq[, options]]])

# encodeURI 和querystring