解析url参数
// 不受hash值干扰
function getParamUrl(url){
let result = {}
let reg = /([^?=&#]+)=([^?=&#]+)/g
url.replace(reg,(n,x,y)=>{result[x]=y)
return result
}
// 不受hash值干扰
function getParamUrl(url){
let result = {}
let reg = /([^?=&#]+)=([^?=&#]+)/g
url.replace(reg,(n,x,y)=>{result[x]=y)
return result
}