getQueryParams(){
const params = {};
let url = window.location.href;
let arr = url.split("?")[1].split("#")[0].split("&");
arr.forEach((item) => {
let [key, value = ""] = item.split("=");
params[key] = value;
});
return params;
}
取query参数
最新推荐文章于 2023-11-15 11:32:17 发布