Chrome XMLHttpRequest reference

会有一股神秘感。 提交于 2019-12-23 07:35:06

问题


Is there any documentation for the current Chrome implementation of XMLHttpRequest similar to this: https://developer.mozilla.org/en/XMLHttpRequest

I couldn't find anything on Chrome's dev site and I'd appreciate if anyone can tell me the differences between FF 3.6 and Chrome 8 XHR implementations.


回答1:


The Mozilla Developer Network documentation on XMLHTTPRequest has a browser compatibility chart which details the specifics of Chrome's implementation.

For example, the chart shows that the comment about timeout on an answer to this question is invalid since Chrome 29.

And since MDN has even more specific details for Gecko, it's easy to see how the XMLHTTPRequest implementations differ between Firefox and Chrome.




回答2:


It seems that this is the closest thing to API reference that exists for Chrome/WebKit: http://developer.apple.com/library/safari/#documentation/AppleApplications/Conceptual/SafariJSProgTopics/Articles/XHR.html

It's far from the quality of Mozilla's docs but I guess that's better than nothing.




回答3:


Apart from the mozdev website you mention, the best know reference for Chrome’s XMLHttpRequest implementation is actually the standard (draft). Both cover things like responseType way better than any other source I’ve seen.



来源:https://stackoverflow.com/questions/4739587/chrome-xmlhttprequest-reference

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!