在ASP里面 Request.QueryString就是
如果要取每一个 Request.QueryString("Room")

解决方案 »

  1.   

    js里面
    location.search就可以了
      

  2.   

    <script>
    var url=this.location.toString().match(/\?[^\?]+/);
    alert(url);
    </script>
      

  3.   

    var url = location.toString().split('?').pop();
    alert(url);
      

  4.   

    function getParam(str)
    {
    var s = window.location.search; //得到 ?dd=dddddddd;
    if(s)
    {
       var a = s.split("\?");
       var b = a[1].split("&");
       for(var i=0; i<b.length; i++)
       {
      var c = b[i].split("=");
      if(c[0] == str)
      {
    return c[1];
      }
       }
    }
    }
    var p = getParam('id');
    alert(p);
    </script>