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);
jquery获取浏览器URL参数
原文地址:https://www.cnblogs.com/xyhero/p/9404427.html