// 获取url相应的参数
function getParams(name) {
var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
var r = window.location.search.substr(1).match(reg);
if (r != null) return unescape(r[2]);
return null;
};
let key = getParams("key");
原文地址:https://www.cnblogs.com/yrqingblog/p/11451791.html
时间: 2024-10-07 05:27:53