我正在开发一个简单的辅助类来使用XmlHttpRequest发送请求(代码如下)。但我无法让它发挥作用。例如,在谷歌浏览器中,我收到错误INVALID_STATE_ERR:DOMException11,而在其他浏览器中,我收到状态==0。//@methodXRequest:Objectconstructor.Asthisimplementsasingleton,theobjectcan'tbecreatedcallingtheconstructor,GetInstanceshouldbecalledinsteadfunctionXRequest(){this.XHR=XRequest.