有关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.response
和xhr.responseXML
null
onload
{状态为200 OK
。
这是否支持Chrome以及人们实际需要查看的内容?
答案 0 :(得分:1)
MDC文档说Chrome 18+支持它。你用的是哪个版本?