JavaScript获取Url参数
function getUrlParam(param) {
var url = location.href;
var rs = new
RegExp("(^|)" + param + "=([^\&]*)(\&|$)", "gi").exec(url),
temp;
if (temp = rs) {
return temp[2];
}
return "";
}
2022-03-26 15:28:27
JavaScript获取Url参数
function getUrlParam(param) {
var url = location.href;
var rs = new
RegExp("(^|)" + param + "=([^\&]*)(\&|$)", "gi").exec(url),
temp;
if (temp = rs) {
return temp[2];
}
return "";
}