js获取查询字段getQueryString
function getQueryString(name) {
var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
var r = window.location.search.substr(1).match(reg);
return r === null ? '' : unescape(r[2]);
}
码字很辛苦,转载请注明来自NAERENET的《js获取查询字段getQueryString》
2021-09-26 20:04:59