【问题标题】:Is XMLHttpRequest responseType="document" supported in Google Chrome?Google Chrome 是否支持 XMLHttpRequest responseType="document"?
【发布时间】:2012-02-14 01:01:41
【问题描述】:

Can I Use 上的信息表明 Chrome 支持 XMLHttpRequest Level 2。
我在 Chrome 扩展程序中使用了example from MDC

var xhr = new XMLHttpRequest();
xhr.onload = function() {
  alert(this.responseXML.title);
}
xhr.open("GET", url);
xhr.responseType = "document";
xhr.send();

但是,xhr.responsexhr.responseXMLonload 中都是 null(状态为 200 OK)。
这在 Chrome 中是否支持?人们实际上在哪里寻找它是否支持?

【问题讨论】:

    标签: google-chrome xmlhttprequest xmlhttprequest-level2


    【解决方案1】:

    MDC 文档说它在 Chrome 18+ 中受支持。你用的是什么版本?

    【讨论】:

      猜你喜欢
      • 2012-05-09
      • 2016-03-28
      • 2011-10-23
      • 1970-01-01
      • 2012-03-23
      • 2014-10-30
      • 2022-08-05
      • 2018-08-02
      相关资源
      最近更新 更多