JavaScript,JScript和amp;之间有什么区别? ECMAScript的? [英] What's the difference between JavaScript, JScript & ECMAScript?

查看:119
本文介绍了JavaScript,JScript和amp;之间有什么区别? ECMAScript的?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

好的,所以我正在尝试正确学习JavaScript,以便我可以编写好的,干净的客户端代码,但每当我认为我正在取得进展时,有些东西会让我陷入困境!

OK, so I'm trying to learn JavaScript properly so that I can write good, clean client-side code, but whenever I think I'm making progress, something stops me dead in my tracks!

我想知道:


  1. JavaScript,ECMAScript和JScript之间有什么不同?

  1. What is the different between JavaScript, ECMAScript and JScript?

我应该把重点放在学习上?

Which should I focus on learning?

如果这些是版本化的,我应该支持哪个版本?

If these are versioned, which version should I be supporting?

是否有任何必须拥有/阅读的非常好的参考资料(网页/书籍等)?

Are there any really good references (web / books etc) that are a must have/read?

如何确保我所写的内容符合所有主流浏览器(IE,FF,Safari,Chrome,Opera等)?

How do I ensure that what I write will be compliant with all major browsers (IE, FF, Safari, Chrome, Opera etc.) ?

最重要的......是否有核心对象(数组,数字等)的引用,所以我知道已经实现了什么以及我自己需要做什么?

MOST IMPORTANTLY...Is there a reference of the core objects (Array, Number etc) so I know what is implemented already and what I need to do myself?

谢谢。

推荐答案

Javascript是当lan的原始名称guage是由Netscape开发的。

Javascript is the original name when the language was developed by Netscape.

JScript是微软自己实现的名称。

JScript is Microsoft's name of their own implementation.

ECMAScript的名称是ECMA开发的语言标准,来自最初的Javascript实现。

ECMAScript is the name of the language standard developed by ECMA, from the original Javascript implementation.

因此,它只是一种语言,具有不同的实现。

So, it's just one language, with different implementations.

Javascript和JScript的实现在它们支持的方面有所不同,但每个版本都支持相应版本的ECMAScript标准中的内容。通常,您只需使用支持的几个版本,以便它可以在所有仍在使用的浏览器中使用。

The implementations of Javascript and JScript differ somewhat in what they support, but each version supports what's in the corresponding version of the ECMAScript standard. Generally you just use what's supported a few versions back, so that it works in all the browsers that are still in use.

一个参考是 Mozilla开发者网络,因为Mozilla是当前的Javascript开发者。对于每个方法和属性,您可以找到它所支持的版本。

One reference is the Mozilla Developer Network, as Mozilla is the current developer of Javascript. For each method and property you can find which version it is supported in.

JScript记录在 Microsoft Developer Network ,并且有类似的支持信息。 (请注意,所有Microsoft文档都存在,而不仅仅是JScript,因此例如,您需要搜索jscript数组而不仅仅是数组。)

JScript is documented at the Microsoft Developer Network, and has similar information about support. (Note that all Microsoft documentation is there, not only JScript, so for example you would need to search for "jscript array" rather than just "array".)

使用像jQuery这样的库对于避免处理浏览器之间的一些兼容性问题很有用。

Using a library like jQuery is useful to avoid dealing with some of the compatibility problems between browsers.

这篇关于JavaScript,JScript和amp;之间有什么区别? ECMAScript的?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆