问题
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