Martin Honnen http://JavaScript.FAQTs.com/ 这或多或少都是我问的原因,Flash(以及新的Director MX 2004) ) 支持ECMAScript兼容的JavaScript语法,我想知道是否实际上也可以说是浏览器:Firefox支持 ECMAScript兼容的JavaScript语法"。 所有人都有不同的''DOM''。 谢谢 Manno 我知道数组对象'它的功能不是任何DOM的一部分,我试图在我所争论的那个人的论点中继续。但是,为了反对他的论点,它是草率的实现还是IE 5版本使用的另一个版本的JavaScript? MS调用它JavaScript / ECMAScript JScript的实现。我认为 IE5附带JScript 5,当时ECMAScript版本3 已经出来我不记得了,我认为Windows 98已经 以IE5为特色,而ECMAScript第3版标准最终出现在1999年因此MS实施该标准可能并不邋 而是专注于其他东西等待ECMAScript版 3最终确定。 - Martin Honnen http://JavaScript.FAQTs.com/ Hi all,more or less just out of curiosity...I had a short ''discussion'' about JavaScript in different borwsers. Theother guy said that there''s differeces in JavaScript accross browsers (Iassumed he meant apart from versions) "because there''s differentfunctions".I didn''t agree because I think that''s because of different DOM''s. I knowthat for example IE 5.0 (or 5.5?) does not support array.push() (and alot more), but isn''t that just sloppy implementation or simply usingdifferent versions of the language?Is it safe to say that one version of JavaScript should be the sameeverywhere except for DOM differences?Is JavaScript ECMA-262 with browserspecific elements?Thanks in advance,Manno 解决方案It depends on whom you ask and perhaps it also depends when you ask orasked someone.With its introduction in the Netscape 2.02 browser there was only oneimplementation of the language and that was in a browser environment butthere was no ECMAScript standard at all. Later Netscape used itsJavaScript engine also on the server and documented both client-sideJavaScript and server-side JavaScript "versions" which consisted of coreobjects specified in ECMAScript and host environment specific objectslike window, document in client-side JavaScript and server specificobjects in server-side JavaScript.By now Netscape respectively Mozilla has two open-source JavaScriptengines, one called Spidermonkey implemented in C, the other calledRhino imlemented in Java, and there are many different applications thatuse those engines. So you can have JavaScript scripting in manyenvironments, not only browser specific ones.And the MS JScript scripting engine can also be embedded in manydifferent environments, in the IE browser but as well in ASP pages as inWindows Script host.--Martin Honnen http://JavaScript.FAQTs.com/That was more or less why I asked, Flash (and the new Director MX 2004)support "ECMAScript-compliant JavaScript syntax", I was wondering ifthis actually could be said of browsers too: "Firefox supportsECMAScript-compliant JavaScript syntax".All with a different ''DOM'' ofcourse.ThanksManno I know the array object''s functions are no part of any DOM, I was trying to go along in the arguments of the guy I argued with. But to go _against_ his argument, is it sloppy implementation or just another version of JavaScript that IE 5 version uses?MS calls its implementation of JavaScript/ECMAScript JScript. I thinkIE5 came with JScript 5 and whether at that time ECMAScript edition 3was already out I don''t remember exactly, I think Windows 98 alreadyfeatured IE5 while the ECMAScript edition 3 standard came out at the endof 1999 thus MS was probably not sloppy in implementing that standardbut rather focussing on other things and waiting for ECMAScript edition3 to be finalized.--Martin Honnen http://JavaScript.FAQTs.com/ 这篇关于JavaScript ECMAScript定义的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云! 08-21 16:51