异步的时候:
 
alert("get");
            this.xmlReq.open(this.method, this.url,this.isAsync);
alert("open");
            this.xmlReq.send(this.data);
在这里我使用了这两个alert,当alert("get");之前不会有(网页错误提示)
但是当open操作之后,即显示alert("open");之后就会有(网页错误提示) 同步的时候:
当this.xmlReq.open操作的时候this.isAsync为false即为异步的时候就不会出错

解决方案 »

  1.   

    查看下你传递的参数,this.data
    是否在没加载完的时候调用了(既readystate!=4的时候)
      

  2.   

    this.xmlReq.send(this.data);调用了之后readystate就等于4了吧
      

  3.   

    按照你的意思就是说在服务器readystate!=4的时候,服务器就在调用了this.data?
      

  4.   

    我调试了一下,在send之前它就报错了。
    当readystate这个数改变的时候,即状态变的时候,就会有网页报错的信息
      

  5.   

    现在的问题是当readystate状态改变的时候,网页就会出现错误