我听说了 E4X; javascript 的新扩展为 JavaScript 提供了对 XML 的直接支持。
请告诉我目前哪些浏览器支持此功能。
最佳答案
根据维基百科:
E4X is supported by Mozilla's Rhino, used in OpenOffice.org and several other projects, and SpiderMonkey, used in Firefox, Thunderbird, and other XUL-based applications. It is also supported by Tamarin, the JavaScript engine used in the Flash virtual machine. It is not supported by Nitro (Safari), V8 (Google Chrome), Opera, nor Internet Explorer.
关于javascript - 哪些浏览器目前支持 E4X(直接支持 XML 到 JavaScript),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6345371/