获取url参数
var queryString = window.location.search;
var params = new URLSearchParams(queryString);
var paramValue = params.get('111'); // 替换 'paramName' 为你要获取的参数名
var userId = GetQueryString("userId");
//获取传递参数
function GetQueryString(name) {
var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
var r = window.location.search.substr(1).match(reg);
if (r != null)
return decodeURI(r[2]);
return null;
}