标签:function null win regex sub escape str bst search
function GetQueryString(name)
{
var reg = new RegExp("(^|&)"+ name +"=([^&]*)(&|$)");
var r = window.location.search.substr(1).match(reg);
if(r!=null)return unescape(r[2]); return null;
}
alert(GetQueryString("user"));
标签:function null win regex sub escape str bst search
原文地址:http://www.cnblogs.com/godLike7/p/6244325.html