你打开一个子窗口,或者用不可见的frame来执行查询操作。

解决方案 »

  1.   

    使用 xmlhttp 的模式里有两种,同步和异步,你试试看!
      

  2.   

    谢谢楼上的两位,xmlhttp 异步是怎么指定的?
      

  3.   

    var html,xmlHttp,url;
    xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
    xmlHttp.onreadystatechange=getReady;
    xmlHttp.open("GET",url,true);
    xmlHttp.send();
    function getReady()
    {
    if(xmlHttp.readyState==4)
    {
    //alert(xmlHttp.responseText);
    html=xmlHttp.responseText;

    }
    }
      

  4.   

    xmlHttp.open("GET",url,true); //这里的第三个参数 true(同步) false(异步)