分享:XMLHTTPRequest的属性和方法简介(6) // 属性:responseXML // 将响应信息格式化为Xml Document对象并返回 // 语法:var objDispatch = oXMLHttpRequest.responseXML; // 备注:变量,此属性只读,将响应信息格式化为Xml Document对象并返回。如果响应数据不是有效的XML文档, // 此属性本身不返回XMLDOMParseError,可以通过处理过的DOMDocument对象获取错误信息。 alert("Result = " + xmlhttp.responseXML.xml); // 属性:status // 返回当前请求的http状态码 // 语法:lValue = oXMLHttpRequest.status; // 返回值:长整形标准http状态码,定义如下: // Number:Description // 100:Continue // 101:Switching protocols // 200:OK // 201:Created // 202:Accepted // 203:Non-Authoritative Information // 204:No Content // 205:Reset Content // 206:Partial Content // 300:Multiple Choices // 301:Moved Permanently // 302:Found // 303:See Other // 304:Not Modified // 305:Use Proxy // 307:Temporary Redirect