getQueryString:function(name) {
???var reg = new RegExp("(^|&)"+ name +"=([^&]*)(&|$)");
???var r = decodeURI(decodeURI(window.location.search)).substr(1).match(reg);
???if(r!=null)return ?unescape(r[2]); return null;
}
JS采用正则表达式获取地址栏参数
原文地址:https://www.cnblogs.com/liw66/p/9962725.html