/*参数查询*/ function GetQueryString(name){ var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); var r = window.location.search.substr(1).match(reg); if (r != null) return unescape(r[2]); }
查询参数
标签:regex nes amp str var window sub cape col
/*参数查询*/ function GetQueryString(name){ var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); var r = window.location.search.substr(1).match(reg); if (r != null) return unescape(r[2]); }
查询参数
标签:regex nes amp str var window sub cape col
原文地址:https://www.cnblogs.com/AttackLion/p/8492108.html