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 "";
}
JavaScript获取Url参数,布布扣,bubuko.com
原文:http://www.cnblogs.com/xinboqinheng/p/3665577.html