const params={}
const str = 'ct=24&qqmusic_ver=1298&new_json=1&remoteplace=txt.yqq.song&searchid=61453023483879617&t=0&aggr=1&cr=1&catZhida=1&lossless=0&flag_qc=0&p=1&n=10&w=%E5%BC%A0%E6%9D%B0&g_tk_new_20200303=921856724&g_tk=921856724&loginUin=448914712&hostUin=0&format=json&inCharset=utf8&outCharset=utf-8¬ice=0&platform=yqq.json&needNewCode=0'
str.split('&').map(ele=>{
let arr=ele.split('=')
params[arr[0]]=arr[1]
})
params.w=decodeURI(params.w) // 把里面名字进行RUL解码
console.log("params",params)
aggr: “1”
catZhida: “1”
cr: “1”
ct: “24”
flag_qc: “0”
format: “json”
g_tk: “921856724”
g_tk_new_20200303: “921856724”
hostUin: “0”
inCharset: “utf8”
loginUin: “448914712”
lossless: “0”
n: “10”
needNewCode: “0”
new_json: “1”
notice: “0”
outCharset: “utf-8”
p: “1”
platform: “yqq.json”
qqmusic_ver: “1298”
remoteplace: “txt.yqq.song”
searchid: “61453023483879617”
t: “0”
w: “张杰”