function getUrlParam(sUrl, sKey) { let arr=sUrl.split('?')[1].split('#')[0].split('&') //['key=1', 'key=2', 'key=3', 'test=4'] let obj={} //按照key,value划分 arr.forEach((item)=>{ let [key,value]=item.split('=') //key,1 //obj为空执行else if(key in o...