关于Can I Use的信息表明 Chrome 支持 XMLHttpRequest Level 2。
我在我的 Chrome 扩展中使用了 MDC 中的示例:
var xhr = new XMLHttpRequest();
xhr.onload = function() {
alert(this.responseXML.title);
}
xhr.open("GET", url);
xhr.responseType = "document";
xhr.send();
但是,xhr.response和xhr.responseXML都null处于onload(状态为200 OK)。
Chrome 是否支持这一点,人们实际上在哪里寻找它是否支持?