JScript 版本信息
更新:2007 年 11 月
JScript 是一种不断演变的语言,每个新版本都引入一些新的功能。若要充分利用该语言的特定版本提供的所有功能,必须有兼容版本的编译器或脚本引擎。
版本和宿主应用程序
当为服务器端应用程序或命令行程序编写代码时,它所支持的编译器版本和 JScript 版本通常是已知的。但是,当编写运行在浏览器脚本引擎中的客户端脚本时,运行的脚本将检测引擎版本。一旦知道了引擎版本,就可以运行使用兼容的 JScript 版本编写的脚本。有关更多信息,请参见检测浏览器功能。
下表列出了宿主应用程序所实现的 Microsoft JScript 版本。
宿主应用程序 |
1.0 |
2.0 |
3.0 |
4.0 |
5.0 |
5.1 |
5.5 |
5.6 |
.NET |
8.0 |
---|---|---|---|---|---|---|---|---|---|---|
Microsoft Internet Explorer 3.0 |
x |
|
|
|
|
|
|
|
|
|
Microsoft Internet Information Server 3.0 |
|
x |
|
|
|
|
|
|
|
|
Microsoft Internet Explorer 4.0 |
|
|
x |
|
|
|
|
|
|
|
Microsoft Internet Information Server 4.0 |
|
|
x |
|
|
|
|
|
|
|
Microsoft Internet Explorer 5.0 |
|
|
|
|
x |
|
|
|
|
|
Microsoft Internet Explorer 5.01 |
|
|
|
|
|
x |
|
|
|
|
Microsoft Windows 2000 |
|
|
|
|
|
x |
|
|
|
|
Microsoft Internet Explorer 5.5 |
|
|
|
|
|
|
x |
|
|
|
Microsoft Windows Millennium Edition |
|
|
|
|
|
|
x |
|
|
|
Microsoft Internet Explorer 6.0 |
|
|
|
|
|
|
|
x |
|
|
Microsoft Windows XP |
|
|
|
|
|
|
|
x |
|
|
Microsoft Windows Server 2003 |
|
|
|
|
|
|
|
x |
|
|
Microsoft .NET Framework 1.0 |
|
|
|
|
|
|
|
|
x |
|
说明: |
---|
ScriptEngineMajorVersion 函数和 @_jscript_version 条件编译变量所报告的版本号始终是数值。这样就允许对版本号执行数值比较。对于 .NET 版本的应用程序,所报告的版本为 7.x,而不是 .NET。这就意味着,报告版本号为 7.x 或更高的引擎可以编译 JScript 8.0 代码。 |
下表列出了 JScript 语言功能和首次引入时的版本。
语言元素 |
1.0 |
2.0 |
3.0 |
4.0 |
5.0 |
5.5 |
.NET |
8.0 |
---|---|---|---|---|---|---|---|---|
|
|
|
|
|
x |
|
|
|
|
|
x |
|
|
|
|
|
|
x |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
x |
|
|
x |
|
|
|
|
|
|
|
|
|
|
x |
|
|
|
|
|
|
x |
|
|
|
|
|
|
|
|
x |
|
|
|
|
|
|
|
|
x |
|
|
|
|
|
|
|
|
|
|
|
|
|
x |
|
|
|
x |
|
|
|
|
|
|
|
|
|
x |
|
|
|
|
|
|
|
|
x |
|
|
|
|
|
|
|
x |
|
|
|
|
|
|
|
|
x |
|
|
|
|
|
|
|
|
x |
|
|
|
|
|
|
|
|
x |
|
|
|
|
|
|
|
|
|
|
x |
|
|
|
|
|
|
x |
|
|
|
|
|
|
|
|
x |
|
|
|
|
|
|
|
|
x |
|
|
|
|
|
|
|
|
x |
|
|
|
|
|
|
|
|
x |
|
|
|
|
|
|
|
|
x |
|
|
|
|
|
|
|
|
x |
|
|
|
|
|
|
|
|
x |
|
|
|
|
|
|
|
|
x |
|
|
|
|
|
|
|
|
x |
|
|
|
|
|
|
|
|
x |
|
|
|
|
|
|
|
|
x |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
x |
|
|
|
x |
|
|
|
|
|
|
|
x |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
x |
|
|
|
|
|
|
|
x |
|
|
|
|
|
|
|
|
x |
|
|
|
|
x |
|
|
|
|
|
|
|
|
|
|
|
x |
|
|
|
|
|
|
x |
|
|
|
|
|
|
x |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
x |
|
|
x |
|
|
|
|
|
|
|
|
|
|
|
|
|
x |
|
|
|
|
|
|
|
|
|
x |
|
|
x |
|
|
|
|
|
|
|
|
x |
|
|
|
|
|
|
|
|
x |
|
|
|
|
|
|
|
|
x |
|
|
|
|
|
|
|
|
|
|
x |
|
|
|
|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