标签:arch fun nes cap bst window search exp www.
当前:url=www.baidu.com?id=2
id = GetQueryString(id)//2
function GetQueryString(name) {
var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
var r = window.location.search.substr(2).match(reg);
if(r != null) return unescape(r[3]);
return null;
}
标签:arch fun nes cap bst window search exp www.
原文地址:https://www.cnblogs.com/qijiamin/p/9494882.html