function getQueryString(name) { var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i"); var r = window.location.search.substr(1).match(reg); if(r != null) return unescape(r[2]); return null;}
本文共 257 字,大约阅读时间需要 1 分钟。
function getQueryString(name) { var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i"); var r = window.location.search.substr(1).match(reg); if(r != null) return unescape(r[2]); return null;}
转载于:https://www.cnblogs.com/jiaotankuai417/p/6877385.html