标签:
function getQueryString(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;
}
alert(getQueryString("参数名1"));alert(getQueryString("参数名2"));
alert(getQueryString("参数名3"));
标签:
原文地址:http://www.cnblogs.com/Yiran583/p/4575738.html