简体   繁体   English

Internet Explorer 10 和 11 是否支持同步 XMLHttpRequest?

[英]Is synchronous XMLHttpRequest supported in Internet Explorer 10 and 11?

I am having no luck trying to find an authoritative answer to this question, prompted by the claim at caniuse.com that IE 10 and 11 have dropped support for synchronous requests.由于caniuse.com 上声称 IE 10 和 11 已放弃对同步请求的支持,我无法找到该问题的权威答案。 See the Known Issues tab on this page:请参阅此页面上的已知问题选项卡:

http://www.caniuse.com/#search=xmlhttprequest http://www.caniuse.com/#search=xmlhttprequest

The only reference to any problems with synchronous XMLHttpRequest in IE 11 that I could find are two invalid bug reports:我能找到的关于 IE 11 中同步 XMLHttpRequest 的任何问题的唯一参考是两个无效的错误报告:

https://connect.microsoft.com/IE/feedback/details/810738/ie-11-synchronous-xmlhttprequest-fails https://connect.microsoft.com/IE/feedback/details/801404/ie-11-still-does-not-support-xmlhttprequest-async-false https://connect.microsoft.com/IE/feedback/details/810738/ie-11-synchronous-xmlhttprequest-fails https://connect.microsoft.com/IE/feedback/details/801404/ie-11-still -does-not-support-xmlhttprequest-async-false

Could someone confirm that synchronous is supported in these versions?有人可以确认这些版本支持同步吗? Up until today I treated caniuse.com as authoritative, now I'm not so sure.直到今天我都认为caniuse.com是权威的,现在我不太确定。 I'll have to look into how they obtain their data.我将不得不调查他们如何获得他们的数据。

By a happy coincidence I founda link on the jQuery Browser Support page to Virtual Machines offered by Microsoft for testing of IE 10 and 11. I downloaded the IE11/Win7 file, and used it to confirm that synchronous XMLHttpRequest works just fine in this browser.巧合的是,我在jQuery 浏览器支持页面上找到Microsoft 提供的虚拟机链接,用于测试 IE 10 和 11。我下载了 IE11/Win7 文件,并用它来确认同步 XMLHttpRequest 在此浏览器中工作正常. I'll notify caniuse.com, so they can correct their mistake.我会通知 caniuse.com,以便他们纠正错误。 I will invite them to comment here as to how that mistake could happen - it undermines trust in their platform.我将邀请他们在这里评论这个错误是如何发生的——它破坏了对他们平台的信任。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM