var Request = new function()
{
this.search=window.location.search;
this.QueryString = new Array();
var tmparray = this.search.substr(1,this.search.length).split("&")
for(var i = 0;i<tmparray.length;i++)
{
var tmpStr2 = tmparray[i].split("=");
this.QueryString[tmpStr2[0]] = tmpStr2[1];
}
}
window.οnlοad=function ()
{
alert(Request.QueryString["a"]);
}
“a”为url传递参数