1.链接样例
http://localhost:3000/business/basebiologyfile/BaseBiologyFileList?fileClassify=10
2.获取链接的方法
getUrlParam(name) {
var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); //构造一个含有目标参数的正则表达式对象
var r = window.location.search.substr(1).match(reg); //匹配目标参数
if(r != null) return unescape(r[2]);
return null; //返回参数值
}
3.获取参数
console.log(this.getUrlParam("fileClassify"));