谢谢,不过我试过了
只能得到?后的一个参数,结果为
http://www.same-dict.net/display.php?S=Help
得不到全部,为什么?

解决方案 »

  1.   

    我明白了
    我是这样做得
    var HostUrl= "";
    HostUrl =document.location;然后传值
    <script language="JavaScript" type="text/javascript" src="./stat.php?HostUrl="+HostUrl+"></script>
    也及时说在stat.php这个页面已经接收到值
    stat.php?HostUrl=http://www.same-dict.net/display.php?S=Help&A=fhtz&page=2
    只是怎么才能获得URL中HostUrl所有得内容?
      

  2.   

    <script language="JavaScript" type="text/javascript" src="./stat.php?HostUrl="+escape(HostUrl)+"></script>
    处理时,取得参数后再unescape