getQueryString(name) {标签:map,Url,aps,JS,let,split,query,参数,parameter From: https://blog.51cto.com/u_15975838/6096767
let parameters = location.href.split('?')[location.href.split('?').length - 1];
let aps = parameters.split('&');
let query = [];
for (var i = 0; i < aps.length; i++) {
let parameter = aps[i].split('=');
if(parameter[0] == name)
return parameter[1];
// let map = {key: null,value: null}
// map.key = parameter[0];
// map.value = parameter[1];
// query.push(map);
}
// return query;返回所有数据
}