//获取Url传递的参数 function GetUrlParam(name) { var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); var r = window.location.search.substr(1).match(reg); if (r != null) return unescape(r[2]); return null; }
通过 GetUrlParam('Cid')来获取具体参数的值;
//获取Url传递的参数 function GetUrlParam(name) { var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); var r = window.location.search.substr(1).match(reg); if (r != null) return unescape(r[2]); return null; }
通过 GetUrlParam('Cid')来获取具体参数的值;