JavaScript/ECMA 的许多名称
我正在查找 JavaScript 的新函数,并发现了 ECMAScript/ECMA 5。
因为我从未听说过它,所以我对其进行了更多研究,发现它以不同名称的形式出现,例如:
JavaScript, JScript (Microsofts Variation), ECMAScript, ECMA 5, E4X (JavaScript for Xml)and many others
从我读到的内容来看,它似乎是同时正在起草 JavaScript 的较新实现,它被称为 ECMA-262 版本 {edition_number} 或 {name}。
我知道如果是 ECMAScript 的实现,那么每一种都是一种方言,因此即使不是略有不同,它也会以相同的方式工作。
JavaScript 和 ECMAScript 有什么不同,还是只是名称不同?
I was looking up newer functions of JavaScript and found ECMAScript/ECMA 5.
Because I had never heard of it I looked in to it more and found that it comes in the form of different names such as:
JavaScript, JScript (Microsofts Variation), ECMAScript, ECMA 5, E4X (JavaScript for Xml)and many others
From what I have read it seems that whilst a newer implementation of JavaScript is being drafted it is called ECMA-262 edition {edition_number} or {name}.
I know that each one is a dialect if an implementation of ECMAScript, so it would work in the same if not a slightly different way.
Are JavaScript and ECMAScript different in any way or is it just the name?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
ECMAScript 是一个标准。 Javascript、JScript 是该标准的实现。
是的,它们几乎 相同。 Web 编程中的大部分差异来自 DOM 实现(文档对象模型)的多样性。
ECMAScript is a standard. Javascript, JScript are implementations of that standard.
And yes they are almost the same. Most of the differences in web programming come from the diversity of DOM implementations (Document Object Model).
嗯,大部分只是名字。
Javascript 首先被实现,然后起草了 ECMAScript 标准来描述它。
Well, it's mostly just the name.
Javascript was first implemented, then the ECMAScript standard was drafted to describe it.
相同的。 ECMAScript 是语言,Javascript 是网络浏览器中实现的名称。
Same. ECMAScript is the language, Javascript is the name of the implementation in web browsers.
然而,如果你在为浏览器编写代码时坚持使用 JavaScript,那么你将是最兼容的。
HOWEVER if you stick to JavaScript when you code for browsers, you will be the most compatible.