jquery获取浏览器URL参数

getRequestParams:function(param){

var reg = new RegExp("(^|&)" + param + "=([^&]*)(&|$)", "i");

var r = window.location.search.substr(1).match(reg);

if (r != null) return unescape(r[2]); returnnull;

}

使用方法:

var reportName = this.getRequestParams("reportName");

console.log(reportName);