标签:cape cap function exp get arch reg query null
function getQueryString(name) {
var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
var url = decodeURI(window.location.search);
var r = url.substr(1).match(reg);
if (r != null) return unescape(r[2]); return null;
}
标签:cape cap function exp get arch reg query null
原文地址:http://www.cnblogs.com/xuanlanbinfen/p/6292514.html