我发现 IE6 和 Firefox 7 之间的结果不同。我认为不同浏览器之间的差异可能不会太大,因为 IE6 大部分使用 ActiveX 控件,而其他所有内容都使用 XMLHttpRequest。我相信 XMLHttpRequest 在 IE7 之前不是原生的。
在 IE6 ActiveXObject 和 true Firefox 7 中似乎是错误的。但我似乎找不到文档。
// one of these lines gets called - the first successful one
obj = new XMLHttpRequest();
obj = new ActiveXObject("Msxml2.XMLHTTP.3.0");
obj = new ActiveXObject("Msxml2.XMLHTTP");
obj = new ActiveXObject("Microsoft.XMLHTTP");
// now later the code makes this call
obj.open("GET",url);
// notice how the third parameter [async] is not assigned
我的问题是在上述不同场景下异步属性的默认值是多少?
最佳答案
关于javascript - XMLHttpRequest.open 方法的 async 属性的 javascript 默认值是多少?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8229465/