学习内容:Javascript,Jscript,JScript.NET,ECMA 262(第3版)? [英] Which to Learn: Javascript, Jscript, JScript.NET, ECMA 262 (3rd ed)?

查看:41
本文介绍了学习内容:Javascript,Jscript,JScript.NET,ECMA 262(第3版)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请注意,这是交叉到comp.lang.javacript和

microsoft.public.dotnet.scripting。


经过一些谷歌搜索和常见问题我的理解这些术语粗略地说:


Javascript(3种不同的定义):

1.最初由Netscape开发的脚本语言。 (我提供了一个简短的

句柄:原始Netscape脚本)

2.当前实施的ECMAscript 262(第3版)标准由

Netscape。 (我提供了一个简短的句柄:当前的Netscape实现)

3.一个通用术语,用于指定不断发展的标准和

实现。


Jscript

1.当前微软实施ECMAscript 262(第3版)

标准。


ECMAscript标准

1.脚本标准是当前推荐的262,第3版我

相信。


JScript.NET

1.微软ECMAscript的实现(第4版)。


这些定义可能并且一直在争论不休。我有他们

基本上对吗? javascript怎么样?大多数人都懂?


我该学什么?也就是说,这些都是新手问题,当你的网站编写脚本时,你应该使用什么实现/标准来实现相当宽的浏览器兼容性?


你选择javascript中的任何一个 - 当前的netscape实现还是Jscript

然后小心不要使用不属于

ECMAscript 262的实现扩展?在学习时,您是否从ECMAscript 262标准开始

并忽略特定的实现?一个实现是否受到青睐

而另一个(微软上的网景)?


一个实现是否被视为具有更高的兼容性? javascript -

当前的netscape实现?

发布,甚至在IE 6.0中都不支持?


我来自Dotnet / microsoft世界。如果我学习Jscript,我会成为一个微软的奴隶,或者Jscript是否足以与浏览器兼容?


我想我也必须知道哪个版本的实现我应该编码。

这又取决于您编码的当前浏览器:


查看 http://www.doctor-html.com/agent_stats/


它会看到Netscape 7.0和IE 5.0将是足够低的常见

分母。这些是您定位的浏览器吗?


如果有人在哪里学习Jscript那么
http://msdn.microsoft.com/library/de...script7/html/j

sconIntroductionToJScriptNETForJScriptProgrammers。 asp


会规定不应该高于Jscript 5.0吗?应该学习当前的netscape

实现版本(如果你要沿着netscape下去

路径)1.2,1.5,2.0?


您可以一举回答所有这些问题吗?


先谢谢,

John


Note this is crossposted to comp.lang.javacript and
microsoft.public.dotnet.scripting.

After some Googling and FAQing my understanding of these terms is, crudely:

Javascript (3 different definitions):
1. The scripting language originally developed by Netscape. (I offer a Brief
handle: "Original Netscape Script")
2. The current implementation of the ECMAscript 262 (3rd ed.) standard by
Netscape. (I offer a brief handle: "Current Netscape implementation")
3. A generic term used to designate the continuly evolving standard and
implementations.

Jscript
1. The current microsoft implementation of the ECMAscript 262 (3rd ed.)
standard.

ECMAscript Standard
1. The scripting standard that is the current recommendation 262, 3rd edition I
believe.

JScript.NET
1. Microsoft''s implementation of ECMAscript (4th Ed).

The definitions could be, and have been, debated endlessly. Do I have them
essentially right? How is "javascript" mostly understood?

Which do I learn? That is, and these are all newbie questions, when scripting
your web site what implementation/standard should you use for reasonably wide
browser compatiblity?

Do you pick either of javascript - current netscape implementation OR Jscript
Then be careful not to use implementation extensions that are not part of
ECMAscript 262? Do you, when learning, start with the ECMAscript 262 standard
and ignore the particular implementations? Is one implementation to be favoured
over the other (netscape over microsoft)?

Is one implementation regarded as having greater compatibility? javascript -
current netscape implementation?

Should JScript.NET be avoided like the plague as it based on a standard yet to
be released and not even supported in IE 6.0?

I am coming from the Dotnet/microsoft world. If I learn Jscript have I become a
microsoft slave or is Jscript sufficiently cross browser compatible?

I suppose too I have to know which version of an implementation I should code.
This in turn is dictated by which are the current browsers you code for:

Looking at http://www.doctor-html.com/agent_stats/

It would seen that Netscape 7.0 and IE 5.0 would be sufficiently lowest common
denominator. Are these the browsers you target?

If one where to learn Jscript then
http://msdn.microsoft.com/library/de...script7/html/j
sconIntroductionToJScriptNETForJScriptProgrammers. asp

would dictate no higher than Jscript 5.0 should be learnt? What current netscape
implentation version should be learnt ( if you were to go down the netscape
path) 1.2, 1.5, 2.0?

You might be able to answer all these questions in one swoop??

Thanks in Advance,
John


推荐答案

你是对的。


javascript 1.5(ECMAscript 262 ed 3)是当前的黄金标准,这是在大多数当前环境中实现的
(netscape,即flash。,xslt等)。


版本1.0 - 1.2主要在dom中变化(浏览器对象)改变而不是语言本身的



从1.2 - 1.5主要语言的变化是新的日期处理方法

(符合y2k标准),编码替换逃生,并尝试..catch块。


版本2.0加入javascript.net实现的类扩展。

我将学习javascript 1.5,如javascript.net (2.0)仅由

asp.net(或独立的.net exe)支持。 2.0还将javascript从

无类型脚本语言改为刚性类型语言,需要编码

样式更改。


如果你试着写一个javascript.net应用程序,你会发现

是没有ide支持,只有一个命令行编译器。所以对于.net世界,我会学习C#(因为javascript 2.0看起来像带有C#扩展的javascript),对于

脚本世界我会选择javascript 1.5 。


- 布鲁斯(sqlwork.com)

" John Bentley" <无***** @ nowhere.com>在消息中写道

news:40 ******** @ news.comindico.com.au ...
you are correct.

javascript 1.5 (ECMAscript 262 ed 3) is the current gold standard, that is
implemented in most current enviroments (netscape, ie, flash., xslt, etc).

version 1.0 - 1.2 varied mostly in dom (browser object) changes rather than
the language itself.

from 1.2 - 1.5 the main languages changes are in new date handling methods
(for y2k compliance), encode replacing escape, and try ..catch blocks.

version 2.0 addes the class extension that javascript.net implemented.

I''d learn javascript 1.5, as javascript.net (2.0) is only supported by
asp.net (or a standalone .net exe). Also 2.0 changes javascript from a
typeless scripting language to a rigid typed language, requiring coding
style changes.

also if you try to write a javascript.net application, you will find there
is no ide support, only a command line compiler. so for the .net world I''d
learn C# (as javascript 2.0 looks like javascript with C# extensions), for
scripting world I''d pick javascript 1.5.

-- bruce (sqlwork.com)
"John Bentley" <no*****@nowhere.com> wrote in message
news:40********@news.comindico.com.au...
请注意,这是交叉到comp.lang。 javacript和
microsoft.public.dotnet.scripting。

经过一些谷歌搜索和常见问题解答后,我对这些术语的理解是粗略的:
Javascript(3种不同的定义) :
1.最初由Netscape开发的脚本语言。 (我提供
简要句柄:原始Netscape脚本)
2. Netscape目前实施的ECMAscript 262(第3版)标准。 (我提供了一个简短的句柄:当前Netscape实现)
3.一个通用术语,用于指定不断发展的标准和
实现。

Jscript
1.当前微软实施ECMAscript 262(第3版)
标准。

ECMAscript标准
1.脚本标准是当前建议262,第3
版我相信。

JScript.NET
1.微软实施ECMAscript(第4版)。

定义可能是,并且有一直,无休止地辩论。我有他们
基本上对吗? javascript怎么样?大多数人都明白了吗?

我学到了什么?也就是说,这些都是新手问题,当
为你的网站编写脚本你应该使用什么实现/标准来合理地
广泛的浏览器兼容性?

你选择哪一个javascript - 当前的netscape实现OR
Jscript然后注意不要使用不属于ECMAscript 262的实现扩展?在学习时,您是否从ECMAscript 262
标准开始并忽略特定实现?一个实现是
优于另一个(netets over microsoft)?

一个实现是否被认为具有更强的兼容性?
javascript - 当前的netscape实现?

JScript.NET应该像瘟疫一样被避免,因为它基于标准的
尚未发布,甚至在IE 6.0中都不支持?

我来自Dotnet / microsoft世界。如果我学习Jscript,我的b $ b会变成微软的奴隶,或者Jscript是否足以与浏览器兼容?

我想我也必须知道哪个版本的实现应该是
代码。这反过来取决于您编码的当前浏览器:

查看 http://www.doctor-html.com/agent_stats/
将会看到Netscape 7.0和IE 5.0足够低
普通分母。这些是您定位的浏览器吗?

如果有人在哪里学习Jscript那么
http://msdn.microsoft.com/library/de...us/jscript7/ht

ml / j sconIntroductionToJScriptNETForJScriptProgrammers。 asp

会不会比应该学习Jscript 5.0更高?应该学习当前的
netscape实现版本(如果你要沿着
netscape路径走下去)1.2,1.5,2.0?

你或许可以回答所有这些问题一举两得??

在此先感谢,
Note this is crossposted to comp.lang.javacript and
microsoft.public.dotnet.scripting.

After some Googling and FAQing my understanding of these terms is, crudely:
Javascript (3 different definitions):
1. The scripting language originally developed by Netscape. (I offer a Brief handle: "Original Netscape Script")
2. The current implementation of the ECMAscript 262 (3rd ed.) standard by
Netscape. (I offer a brief handle: "Current Netscape implementation")
3. A generic term used to designate the continuly evolving standard and
implementations.

Jscript
1. The current microsoft implementation of the ECMAscript 262 (3rd ed.)
standard.

ECMAscript Standard
1. The scripting standard that is the current recommendation 262, 3rd edition I believe.

JScript.NET
1. Microsoft''s implementation of ECMAscript (4th Ed).

The definitions could be, and have been, debated endlessly. Do I have them
essentially right? How is "javascript" mostly understood?

Which do I learn? That is, and these are all newbie questions, when scripting your web site what implementation/standard should you use for reasonably wide browser compatiblity?

Do you pick either of javascript - current netscape implementation OR Jscript Then be careful not to use implementation extensions that are not part of
ECMAscript 262? Do you, when learning, start with the ECMAscript 262 standard and ignore the particular implementations? Is one implementation to be favoured over the other (netscape over microsoft)?

Is one implementation regarded as having greater compatibility? javascript - current netscape implementation?

Should JScript.NET be avoided like the plague as it based on a standard yet to be released and not even supported in IE 6.0?

I am coming from the Dotnet/microsoft world. If I learn Jscript have I become a microsoft slave or is Jscript sufficiently cross browser compatible?

I suppose too I have to know which version of an implementation I should code. This in turn is dictated by which are the current browsers you code for:

Looking at http://www.doctor-html.com/agent_stats/

It would seen that Netscape 7.0 and IE 5.0 would be sufficiently lowest common denominator. Are these the browsers you target?

If one where to learn Jscript then
http://msdn.microsoft.com/library/de...us/jscript7/ht
ml/j sconIntroductionToJScriptNETForJScriptProgrammers. asp

would dictate no higher than Jscript 5.0 should be learnt? What current netscape implentation version should be learnt ( if you were to go down the netscape path) 1.2, 1.5, 2.0?

You might be able to answer all these questions in one swoop??

Thanks in Advance,
John



>经过一些谷歌搜索和常见问题解答后,我对这些术语的理解粗略地说:
> After some Googling and FAQing my understanding of these terms is, crudely:

Javascript(3种不同的定义):
1.最初由Netscape开发的脚本语言。 (我提供了一个简短的句柄:原始Netscape脚本)
2.目前由Netscape实施的ECMAscript 262(第3版)标准。 (我提供了一个简短的句柄:当前Netscape实现)
3.一个通用术语,用于指定不断发展的标准和
实现。

Jscript
1.当前微软实施的ECMAscript 262(第3版)
标准。

ECMAscript标准
1.脚本标准是当前建议262,第3版I
相信。

JScript.NET
1.微软ECMAscript的实现(第4版)。

定义可能是,并且有一直,无休止地辩论。我有他们
基本上对吗? javascript怎么样?大多数人了解


该语言的标准名称是ECMAScript。没有人称之为

因为这是一个非常糟糕的名字。每个人都称它为JavaScript,甚至是

,虽然正式的JavaScript是Netscape实现

ECMAScript的名称。

我该学哪些?也就是说,这些都是新手问题,当你的网站编写脚本时,你应该使用哪种实现/标准来实现相当宽的浏览器兼容性?


学习语言。坚持标准。让你的东西便携。

避免专有功能和陷阱。保持干净。在可靠的公共子集上查看jslint的

自动建议。
http://www.crockford.com/javascript/lint.html

你选择javascript中的任何一个 - 当前的netscape实现还是Jscript
然后注意不要使用不属于ECMAscript 262的实现扩展?在学习时,您是否从ECMAscript 262标准开始并忽略特定的实现?一个实现是否比其他实现(微软的网景)更受青睐?


你希望你的东西尽可能广泛地运行。

一个实现是否被认为具有更强的兼容性? javascript -
当前的netscape实现?


再次,保持稳定和普通的东西。

应该像瘟疫那样避免使用JScript.NET,因为它基于标准而不是
在IE 6.0中发布甚至不支持?


JScript.NET与浏览器应用程序无关。它是不可用的,

如果它确实可用,它的份额​​将会非常小,以至于它仍然可以保留现有的东西。

另一方面,如果你正在做服务器应用程序,那不是一个问题。我觉得JScript.NET很乱。 JavaScript是一种动态的

语言。 .NET针对静态语言进行了优化。我不喜欢他们对该语言所做的改变以使其适合。如果你坚持使用.NET,你可能会使用C#。

我来自Dotnet / microsoft世界。如果我学习Jscript,我会成为一个微软的奴隶还是Jscript足够跨浏览器兼容?


微软试图用VBScript取代JavaScript,但失败了。

JScript比正确实现其标准更接近

微软的其他语言。

我想我也必须知道我应该编写哪个版本的实现。
这反过来取决于你编写的当前浏览器:

查看 http://www.doctor-html .com / agent_stats /
将会看到Netscape 7.0和IE 5.0将是足够低的常见分母。这些是您的目标浏览器吗?

Javascript (3 different definitions):
1. The scripting language originally developed by Netscape. (I offer a Brief
handle: "Original Netscape Script")
2. The current implementation of the ECMAscript 262 (3rd ed.) standard by
Netscape. (I offer a brief handle: "Current Netscape implementation")
3. A generic term used to designate the continuly evolving standard and
implementations.

Jscript
1. The current microsoft implementation of the ECMAscript 262 (3rd ed.)
standard.

ECMAscript Standard
1. The scripting standard that is the current recommendation 262, 3rd edition I
believe.

JScript.NET
1. Microsoft''s implementation of ECMAscript (4th Ed).

The definitions could be, and have been, debated endlessly. Do I have them
essentially right? How is "javascript" mostly understood?
The standard name for the language is ECMAScript. Nobody calls it that
because it is such an awful name. Everyone calls it JavaScript, even
though formally JavaScript is the name of Netscape''s implementation of
ECMAScript.
Which do I learn? That is, and these are all newbie questions, when scripting
your web site what implementation/standard should you use for reasonably wide
browser compatiblity?
Learn the language. Stick to the standard. Make your stuff portable.
Avoid proprietary features and traps. Keep it clean. Look at jslint for
automated advice on a reliable common subset.
http://www.crockford.com/javascript/lint.html
Do you pick either of javascript - current netscape implementation OR Jscript
Then be careful not to use implementation extensions that are not part of
ECMAscript 262? Do you, when learning, start with the ECMAscript 262 standard
and ignore the particular implementations? Is one implementation to be favoured
over the other (netscape over microsoft)?
You want your stuff to run reliably as widely as possible.
Is one implementation regarded as having greater compatibility? javascript -
current netscape implementation?
Again, keep to what is stable and common.
Should JScript.NET be avoided like the plague as it based on a standard yet to
be released and not even supported in IE 6.0?
JScript.NET is irrelevant for browser applications. It isn''t available,
and if it ever does become available its share will be so small that it
will still be preferrable to stay with the current stuff.

On the other hand, if you are doing server applications, that is not an
issue. I feel though that JScript.NET is a mess. JavaScript is a dynamic
language. .NET is optimized for static languages. I don''t like the
changes they have made to the language to make it fit. If you are stuck
doing .NET, you might as well be using C#.
I am coming from the Dotnet/microsoft world. If I learn Jscript have I become a
microsoft slave or is Jscript sufficiently cross browser compatible?
Microsoft tried to supplant JavaScript with VBScript, and failed.
JScript comes closer to correctly implementing its standard than any of
Microsoft''s other languages.
I suppose too I have to know which version of an implementation I should code.
This in turn is dictated by which are the current browsers you code for:

Looking at http://www.doctor-html.com/agent_stats/

It would seen that Netscape 7.0 and IE 5.0 would be sufficiently lowest common
denominator. Are these the browsers you target?




支持IE 4和Netscape 4不再合理。这很好

Netscape 4濒临灭绝。这是一种危害人类罪。



It is no longer reasonable to support IE 4 and Netscape 4. It is good
that Netscape 4 is going into extinction. It was a crime against humanity.


" do ***** @ crockford.com" <无**** @ covad.net>写道:
"do*****@crockford.com" <no****@covad.net> writes:
支持IE 4和Netscape 4已经不合理了.Netscape 4即将灭绝。这很好。这是对人类的犯罪。
It is no longer reasonable to support IE 4 and Netscape 4. It is good
that Netscape 4 is going into extinction. It was a crime against
humanity.




为了公平对待Netscape 4,它可能是最好的浏览器时它是b / b
出来。它没有遵循的大多数标准当时都没有制定,它包含了Netscape关于如何制作DOM的想法。不是我见过的最好的建议,而是一个建议。


犯罪是让它活了几年。它一直在继续

至少自1999年以来,存在一直是危害人类的罪行(DOM 1

于1998年10月发布)。


/ L

-

Lasse Reichstein Nielsen - lr*@hotpop.com

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

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



To be fair to Netscape 4, it was probably the best browser when it
came out. Most of the standards it fails to follow wasn''t even
formulated then, and it contained Netscape''s ideas about how a DOM
could be made. Not the best suggestion I have seen, but a suggestion.

The crime was to let it live for more than a few years. It''s continued
existence has been a crime against humanity at least since 1999 (DOM 1
was released in October 1998).

/L
--
Lasse Reichstein Nielsen - lr*@hotpop.com
DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleDOM.html>
''Faith without judgement merely degrades the spirit divine.''


这篇关于学习内容:Javascript,Jscript,JScript.NET,ECMA 262(第3版)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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