XMLHTTP对象参考之statusText

信息分类:XmlHttp对象参考 来源:Internet 作者:转载并修改 返回首页

statusText
    返回当前请求的响应行状态

语法
    strValue = oXMLHttpRequest.statusText;

例子
    var xmlhttp = new ActiveXObject("Msxml2.XMLHTTP.3.0");
    xmlhttp.open("GET", "http://localhost/books.xml", false);
    xmlhttp.send();
    alert(xmlhttp.statusText);

备注
    字符串,此属性只读,以BSTR返回当前请求的响应行状态,此属性仅当数据发送并接收完毕后才可获取。

相关资源