functiongetQueryString(name){var reg =newRegExp("(^|&)"+ name +"=([^&]*)(&|$)","i");var r = window.location.search.substr(1).match(reg);if(r !=null)return r[2];returnnull;}
前端获取get方法上的参数function getQueryString(name) { var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i"); var r = window.location.search.substr(1).match(reg); if (r != null) return r[2]; return null;}