一、当服务器端返回的 ContentType 类型是 text/html 或 text/plain 时, xml.responseText 有值(字符串类型),xml.responseXML 为 null;
当服务器端返回的 ContentType 类型是 text/xml 时,xml.responseXML 有值(document类型),xml.responseText 也有值(字符串类型)
二、HTTP 协议响应吗:
一、当服务器端返回的 ContentType 类型是 text/html 或 text/plain 时, xml.responseText 有值(字符串类型),xml.responseXML 为 null;
当服务器端返回的 ContentType 类型是 text/xml 时,xml.responseXML 有值(document类型),xml.responseText 也有值(字符串类型)
二、HTTP 协议响应吗: