我在看 Mozilla Developer Documentation on Javascript .是 Mozilla 对 ECMAScript 标准的解释,还是记录了他们如何在 Firefox 中实现 Javascript?
基本上,我想知道他们的文档是否适用于所有浏览器或仅适用于 Firefox。
最佳答案
基本上两者兼而有之。来自 JavaScript/Reference/About :
The JavaScript Reference serves as a repository of facts about the JavaScript language. The entire language is described here in detail. […]
Recent versions of Mozilla-based browsers support newer versions of JavaScript. […]
Browsers that do not support at least JavaScript 1.5 are very rare today, since JavaScript 1.5 was introduced back in 1999. If you're interested in historic information, please refer to the Wikipedia article on ECMAScript.
JavaScript documentation of core language features (pure ECMAScript, for the most part) [consists of the Guide and the Reference].
它绝对是关于 JavaScript 的 Mozilla 实现的引用,现在涵盖了 EcmaScript 5.1 的所有功能。它们有很好的文档记录,还包含有关旧版 Mozilla 实现和相关其他引擎中的错误的信息。每篇文章还列出cross-browser support in a table ,尽管这些有时并不正确和/或详尽无遗。
该引用还包括 Mozilla 专有功能的文档及其针对 upcoming standards 的实现草案。 .这些是 properly marked as such , 通常带有 non-standard 标签。
此外,不要忘记 it's a wiki !
关于javascript - Mozilla Developer Javascript 文档到底是什么文档?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21433020/