-
根据参数名称获取值
function getQueryStringByName(name) {
var result = location.search.match(new RegExp("[\?\&]" + name + "=([^\&]+)", "i"));
if (result === null || result.length < 1) {
return "";
}
return result[1];
}
function getQueryStringByName(name) {
var result = location.search.match(new RegExp("[\?\&]" + name + "=([^\&]+)", "i"));
if (result === null || result.length < 1) {
return "";
}
return result[1];
}