20108 月5
JS获取URL传递的参数值
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://wizzer.cn/archives/843 , 转载请保留.