异步的时候:
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即为异步的时候就不会出错
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即为异步的时候就不会出错
是否在没加载完的时候调用了(既readystate!=4的时候)
当readystate这个数改变的时候,即状态变的时候,就会有网页报错的信息