//通用函数 var Curren = { //获取地址栏后的指定参数 getQueryString: function(name) { var reg = new RegExp('(^|&)' + name + '=([^&]*)(&|$)', 'i'); var r = window.location.search.substr(1).match(reg); if(r != null) { return decodeURI(r[2]); }else if (r == null){ return "zxbm"; } return null; } };