本文介绍了EcmaScript,ECMAScript还是JavaScript?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将javascript的常见问题更改为EcmaScript。


我得到一些反馈,新闻组是CLJ,语言是

通常被引用作为JavaScript。因此,常见问题解答

中的单词应该是JavaScript。


所以我在问:我应该在FAQ中使用什么?


从技术上讲,''JavaScript''是Mozilla对Ecma-262的实现。


所以 - JavaScript或ECMAScript。


第二个问题是:在哪里使用ECMAScript,它应该是

''ECMAScript''还是''EcmaScript''?


布兰登总称其为Ecma。和Ecma TC3。其他人也这样做。


从技术上讲,''ECMAScript''更官方,虽然它更容易阅读和输入驼峰的情况比b $ b更多所有大写。


您在FAQ中想要什么:JavaScript,EcmaScript或ECMAScript?


Garrett

I made a change to the FAQ of javascript to EcmaScript.

I got some feedback that the newsgroup is CLJ and the language is
commonly referred to as JavaScript. Therefore, the word in the FAQ
should be JavaScript.

So I''m asking: what should I use in the FAQ?

Technically, ''JavaScript'' is Mozilla''s implementation of Ecma-262.

So - JavaScript or ECMAScript.

The second question is: where ECMAScript is used, should it be
''ECMAScript'' or ''EcmaScript''?

Brendan always calls it "Ecma" and "Ecma TC3". Others do, too.

Technically, ''ECMAScript'' is more official, though it''s a little easier
to read and type camel case than all-caps.

What do you want in the FAQ: JavaScript, EcmaScript, or ECMAScript?

Garrett

推荐答案



每当提到

基础语言时,都应该使用术语ECMAScript,因为这是一个容易识别的部分

官方名称。 EcmaScript有点像skript-kiddy。对我来说,即使它的发明者已经采用了它的价格。


只有在引用时才能使用JavaScript(大写)

专门针对Netscape在其

浏览器中实现的ECMAScript。 Mozilla网站上说SpiderMonkey?Mozilla的实现了JavaScript?和Rhino是他们的Java实现。

值得注意的是,Sun拥有JavaScript商标,但

是否重要是没有意义的。


据我所知,术语javascript(没有大写)是

通常用于表示在浏览器中实现的ECMAScript和

包括所有其他主机环境的东西(例如W3C DOM

和专有位)。如果评论引用特定的

实现,则应按名称提及(JScript,SpiderMonkey,

SquirrelFish等)。


重要的是,FAQ指出了

ECMAScript与其在不同环境中的实现之间的区别。

-

Rob

The term ECMAScript should be used whenever referring to the
underlying language because that is an easily recognisable part of its
official name. EcmaScript is a bit "skript-kiddy" to me, even if it''s
been adopted by its inventor.

JavaScript (capitalised) should be used only when referring
specifically to Netscape?s implementation of ECMAScript in their
browser. The Mozilla web site states that SpiderMonkey ?Mozilla''s C
implementation of JavaScript? and Rhino is their Java implementation.
It?s worth noting that Sun owns the JavaScript trademark, though
whether that is important or not is moot.

It is my understanding that the term javascript (no capitalisation) is
generally used to mean ECMAScript as implemented in a browser and
includes all the other host environment stuff as well (e.g. W3C DOM
and proprietary bits). If a comment refers to a specific
implementation, it should mention it by name (JScript, SpiderMonkey,
SquirrelFish and so on).

It is important that the FAQ points out the difference between
ECMAScript and its implementation in different environments.
--
Rob




就个人而言,我使用Javascript关于

与ECMAScript兼容的语言集合(任何触发(非官方)

MIME类型text / javascript的内容)。

这包括JavaScript(TM),JScript(TM)和其他未命名的

实现(例如,在Opera,Safari,Chrome等中)。


它并不比其他任何一个都错误。

/ L

-

Lasse Reichstein Nielsen

DHTML死亡颜色:< URL:http://www.infimum.dk/HTML/rasterTriangleDOM.html>

''没有判断的信仰只会降低精神神圣。''

Personally, I use "Javascript" about the collection of languages that
are ECMAScript compatible (anything that triggers off the (unofficial)
MIME type "text/javascript").
This includes JavaScript(TM), JScript(TM) and other unnamed
implementations (e.g., in Opera, Safari, Chrome, etc.).

It''s no more incorrect than any of the other :)
/L
--
Lasse Reichstein Nielsen
DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleDOM.html>
''Faith without judgement merely degrades the spirit divine.''




就个人而言,我使用Javascript关于

与ECMAScript兼容的语言集合(任何触发(非官方)

MIME类型text / javascript的内容)。

这包括JavaScript(TM),JScript(TM)和其他未命名的

实现(例如,在Opera,Safari,Chrome等中)。


Personally, I use "Javascript" about the collection of languages that
are ECMAScript compatible (anything that triggers off the (unofficial)
MIME type "text/javascript").
This includes JavaScript(TM), JScript(TM) and other unnamed
implementations (e.g., in Opera, Safari, Chrome, etc.).



Safari的JS解释器被称为JavaScriptCore。

Safari''s JS interpreter is called, properly enough, JavaScriptCore.



你并不孤单,大多数书的标题是[某事] +JavaScript+

[something]:即javascript :好的部分,而不是ECMAScript:

好​​的部分 :-)


-

Jorge。

You''re not alone, most books are titled [something]+"JavaScript"+
[something]: i.e. "javascript: The good parts", not "ECMAScript: The
good parts" :-)

--
Jorge.


这篇关于EcmaScript,ECMAScript还是JavaScript?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-21 16:51