获取URL的GET参数 /**URL的GET参数*/function getUrlParams(name) {var reg = new RegExp("(^|)" + name + "=([^]*)(|$)");var r = window.location.search.substr(1).match(reg);if (r != null r.length 0) {return decodeURIComponent(r[2]);}retur
/**URL的GET参数*/ function getUrlParams(name) { var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); var r = window.location.search.substr(1).match(reg); if (r != null && r.length > 0) { return decodeURIComponent(r[2]); } return null; }