CommonUtils.getQueryString = (name) = > {
let reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
let r = window.location.search.substr(1).match(reg);
if (r != null) return decodeURI(r[2]);
return null;
};
CommonUtils.getQueryString = (name) = > {
let reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
let r = window.location.search.substr(1).match(reg);
if (r != null) return decodeURI(r[2]);
return null;
};
本文标题:网址获取某一参数
本文链接:https://www.haomeiwen.com/subject/bpxdiktx.html
网友评论