function getUrlParams(url) {
let params = url.split("?")[1].split("&");
let obj = {};
params.map(v => (obj[v.split("=")[0]] = v.split("=")[1]));
return obj
}
const url = "http://www.baidu.com?a=1&b=2&c=3"
console.log(getUrlParams(url))
09-07