function getQueryUrl(){
let url = window.location.href;
let result = {};
if(url.indexOf('?')>-1){
let str = url.split('?')[1];
let temp = str.split('&');
for(let i=0;i<temp.length;i++){
let temp2 = temp[i].split('=');
result[temp2[0]] = temp2[1]
}
}
return result
}
js获取地址栏全部参数
最新推荐文章于 2024-10-12 10:50:57 发布