JScript: реализация ECMAScript от Microsoft для Internet Explorer. Поддержка Active Scripting, OLE Automation и совместимость с другими языками скриптов.
Сравнивайте с английским: нажмите на абзац — оригинал откроется в окне. Кнопка EN под абзацем показывает его прямо в тексте.
Содержание
Введение
JScript — это устаревший диалект стандарта ECMAScript, используемый в веб-браузере Microsoft Internet Explorer. JScript реализован как механизм Active Scripting. Это означает, что его можно "подключать" к приложениям OLE Automation, поддерживающим Active Scripting, таким как Internet Explorer, Active Server Pages и Windows Script Host. Это также позволяет таким приложениям использовать несколько языков Active Scripting, например JScript, VBScript или PerlScript. Поддержка JScript впервые появилась в браузере Internet Explorer 3.0, выпущенном в августе 1996 года. Его последняя версия — JScript 9.0, включенная в Internet Explorer 9. JScript 10.0 — это отдельный диалект, также известный как JScript .NET, который добавляет несколько новых функций из отмененного четвертого издания стандарта ECMAScript. Он должен компилироваться для NET Framework версии 2 или версии 4, при этом статические аннотации типов являются необязательными. JScript критиковали за уязвимости и наличие множественных ошибок безопасности, которые "использовались государственными структурами", что побудило Microsoft добавить возможность его отключения.
Implementation of ECMAScript by Microsoft
JScript is Microsoft's legacy dialect of the ECMAScript standard that is used in Microsoft's Internet Explorer web browser. JScript is implemented as an Active Scripting engine. This means that it can be "plugged in" to OLE Automation applications that support Active Scripting, such as Internet Explorer, Active Server Pages, and Windows Script Host. It also means such applications can use multiple Active Scripting languages, e. g., JScript, VBScript or PerlScript. JScript was first supported in the Internet Explorer 3.0 browser released in August 1996. Its most recent version is JScript 9.0, included in Internet Explorer 9. JScript 10.0 is a separate dialect, also known as JScript NET, which adds several new features from the abandoned fourth edition of the ECMAScript standard. It must be compiled for NET Framework version 2 or version 4, but static type annotations are optional. JScript has been criticized for being insecure and having multiple security bugs "exploited by nation state actors", leading Microsoft to add an option to disable it.
JScript (COM Classic) (в переводе с английского)
Оригинальный JScript — это движок Active Scripting. Как и другие языки Active Scripting, он построен на платформе COM/OLE Automation и предоставляет возможности скриптов для размещающих приложений. Это версия, используемая при размещении JScript внутри веб-страницы, отображаемой Internet Explorer, в HTML-приложении до IE9, а также в классическом ASP, скриптах Windows Script Host и других средах автоматизации. JScript иногда называют «классическим JScript» или «Active Scripting JScript», чтобы отличить его от более новых версий на основе .NET. Некоторые версии JScript доступны для нескольких версий Internet Explorer и Windows. Например, JScript 5.7 был представлен с Internet Explorer 7.0 и также установлен для Internet Explorer 6.0 с Windows XP Service Pack 3, в то время как JScript 5.8 был представлен с Internet Explorer 8.0 и также установлен с Internet Explorer 6.0 на Windows Mobile 6.5. Реализация ECMAScript 5-го издания от Microsoft в Windows 8 Consumer Preview называется JavaScript, а соответствующая бета-версия Visual Studio 11 Express включает «совершенно новый», полнофункциональный редактор JavaScript с усовершенствованиями IntelliSense для HTML5 и синтаксиса ECMAScript 5, аннотации «VSDOC» для множественных перегрузок, упрощенную конфигурацию DOM, сопоставление скобок, сворачиваемые области и функцию «перейти к определению».
The original JScript is an Active Scripting engine. Like other Active Scripting languages, it is built on the COM/OLE Automation platform and provides scripting capabilities to host applications. This is the version used when hosting JScript inside a Web page displayed by Internet Explorer, in an HTML application before IE9, as well as in classic ASP, Windows Script Host scripts and other Automation environments. JScript is sometimes referred to as "classic JScript" or "Active Scripting JScript" to differentiate it from newer NET based versions. Some versions of JScript are available for multiple versions of Internet Explorer and Windows. For example, JScript 5.7 was introduced with Internet Explorer 7.0 and is also installed for Internet Explorer 6.0 with Windows XP Service Pack 3, while JScript 5.8 was introduced with Internet Explorer 8.0 and is also installed with Internet Explorer 6.0 on Windows Mobile 6.5. Microsoft's implementation of ECMAScript 5th Edition in Windows 8 Consumer Preview is called JavaScript and the corresponding Visual Studio 11 Express Beta includes a "completely new", full featured JavaScript editor with IntelliSense enhancements for HTML5 and ECMAScript 5 syntax, "VSDOC" annotations for multiple overloads, simplified DOM configuration, brace matching, collapsible outlining and "go to definition". Version Date Introduced with Based on Similar JavaScript version 1.0 Aug 1996 Internet Explorer 3.0 Netscape JavaScript 1.0 2.0 Jan 1997 Windows IIS 3.0 Netscape JavaScript 1.1 3.0 Oct 1997 Internet Explorer 4.0 ECMA 262 1st edition 1.3 4.0 Visual Studio 6.0 (as part of Visual InterDev) ECMA 262 1st edition 1.3 5.0 Mar 1999 Internet Explorer 5.0 ECMA 262 2nd edition 1.4 5.1 Internet Explorer 5.01 ECMA 262 2nd edition 1.4 5.5 Jul 2000 Internet Explorer 5.5 & Windows CE 4.2 ECMA 262 3rd edition 1.5 5.6 Oct 2001 Internet Explorer 6.0 & Windows CE 5.0 ECMA 262 3rd edition 1.5 5.7 Nov 2006 Internet Explorer 7.0 ECMA 262 3rd edition + ECMA 327 (ES CP) 1.5 5.8 Mar 2009 Internet Explorer 8.0 & Internet Explorer Mobile 6.0 ECMA 262 3rd edition + ECMA 327 (ES CP) + JSON (RFC 4627) 1.5
JScript is also available on Windows CE (included in Windows Mobile, optional in Windows Embedded CE). The Windows CE version lacks Active Debugging.
Дата выпуска | Внедрен с | Основан на аналогичной версии JavaScript
------- | -------- | --------
1.0 | Август 1996 | Internet Explorer 3.0, Netscape JavaScript 1.0
2.0 | Январь 1997 | Windows IIS 3.0, Netscape JavaScript 1.1
3.0 | Октябрь 1997 | Internet Explorer 4.0, ECMA 262 1-е издание
1.3 | 4.0 | Visual Studio 6.0 (в составе Visual InterDev), ECMA 262 1-е издание
5.0 | Март 1999 | Internet Explorer 5.0, ECMA 262 2-е издание
1.4 | 5.1 | Internet Explorer 5.01, ECMA 262 2-е издание
5.5 | Июль 2000 | Internet Explorer 5.5 и Windows CE 4.2, ECMA 262 3-е издание
1.5 | 5.6 | Октябрь 2001 | Internet Explorer 6.0 и Windows CE 5.0, ECMA 262 3-е издание
5.7 | Ноябрь 2006 | Internet Explorer 7.0, ECMA 262 3-е издание + ECMA 327 (ES CP)
1.5 | 5.8 | Март 2009 | Internet Explorer 8.0 и Internet Explorer Mobile 6.0, ECMA 262 3-е издание + ECMA 327 (ES CP) + JSON (RFC 4627)
1.5 | | |
The original JScript is an Active Scripting engine. Like other Active Scripting languages, it is built on the COM/OLE Automation platform and provides scripting capabilities to host applications. This is the version used when hosting JScript inside a Web page displayed by Internet Explorer, in an HTML application before IE9, as well as in classic ASP, Windows Script Host scripts and other Automation environments. JScript is sometimes referred to as "classic JScript" or "Active Scripting JScript" to differentiate it from newer NET based versions. Some versions of JScript are available for multiple versions of Internet Explorer and Windows. For example, JScript 5.7 was introduced with Internet Explorer 7.0 and is also installed for Internet Explorer 6.0 with Windows XP Service Pack 3, while JScript 5.8 was introduced with Internet Explorer 8.0 and is also installed with Internet Explorer 6.0 on Windows Mobile 6.5. Microsoft's implementation of ECMAScript 5th Edition in Windows 8 Consumer Preview is called JavaScript and the corresponding Visual Studio 11 Express Beta includes a "completely new", full featured JavaScript editor with IntelliSense enhancements for HTML5 and ECMAScript 5 syntax, "VSDOC" annotations for multiple overloads, simplified DOM configuration, brace matching, collapsible outlining and "go to definition". Version Date Introduced with Based on Similar JavaScript version 1.0 Aug 1996 Internet Explorer 3.0 Netscape JavaScript 1.0 2.0 Jan 1997 Windows IIS 3.0 Netscape JavaScript 1.1 3.0 Oct 1997 Internet Explorer 4.0 ECMA 262 1st edition 1.3 4.0 Visual Studio 6.0 (as part of Visual InterDev) ECMA 262 1st edition 1.3 5.0 Mar 1999 Internet Explorer 5.0 ECMA 262 2nd edition 1.4 5.1 Internet Explorer 5.01 ECMA 262 2nd edition 1.4 5.5 Jul 2000 Internet Explorer 5.5 & Windows CE 4.2 ECMA 262 3rd edition 1.5 5.6 Oct 2001 Internet Explorer 6.0 & Windows CE 5.0 ECMA 262 3rd edition 1.5 5.7 Nov 2006 Internet Explorer 7.0 ECMA 262 3rd edition + ECMA 327 (ES CP) 1.5 5.8 Mar 2009 Internet Explorer 8.0 & Internet Explorer Mobile 6.0 ECMA 262 3rd edition + ECMA 327 (ES CP) + JSON (RFC 4627) 1.5
JScript is also available on Windows CE (included in Windows Mobile, optional in Windows Embedded CE). The Windows CE version lacks Active Debugging.
JScript также доступен на Windows CE (включен в Windows Mobile, опционально в Windows Embedded CE). В версии Windows CE отсутствует активная отладка.
The original JScript is an Active Scripting engine. Like other Active Scripting languages, it is built on the COM/OLE Automation platform and provides scripting capabilities to host applications. This is the version used when hosting JScript inside a Web page displayed by Internet Explorer, in an HTML application before IE9, as well as in classic ASP, Windows Script Host scripts and other Automation environments. JScript is sometimes referred to as "classic JScript" or "Active Scripting JScript" to differentiate it from newer NET based versions. Some versions of JScript are available for multiple versions of Internet Explorer and Windows. For example, JScript 5.7 was introduced with Internet Explorer 7.0 and is also installed for Internet Explorer 6.0 with Windows XP Service Pack 3, while JScript 5.8 was introduced with Internet Explorer 8.0 and is also installed with Internet Explorer 6.0 on Windows Mobile 6.5. Microsoft's implementation of ECMAScript 5th Edition in Windows 8 Consumer Preview is called JavaScript and the corresponding Visual Studio 11 Express Beta includes a "completely new", full featured JavaScript editor with IntelliSense enhancements for HTML5 and ECMAScript 5 syntax, "VSDOC" annotations for multiple overloads, simplified DOM configuration, brace matching, collapsible outlining and "go to definition". Version Date Introduced with Based on Similar JavaScript version 1.0 Aug 1996 Internet Explorer 3.0 Netscape JavaScript 1.0 2.0 Jan 1997 Windows IIS 3.0 Netscape JavaScript 1.1 3.0 Oct 1997 Internet Explorer 4.0 ECMA 262 1st edition 1.3 4.0 Visual Studio 6.0 (as part of Visual InterDev) ECMA 262 1st edition 1.3 5.0 Mar 1999 Internet Explorer 5.0 ECMA 262 2nd edition 1.4 5.1 Internet Explorer 5.01 ECMA 262 2nd edition 1.4 5.5 Jul 2000 Internet Explorer 5.5 & Windows CE 4.2 ECMA 262 3rd edition 1.5 5.6 Oct 2001 Internet Explorer 6.0 & Windows CE 5.0 ECMA 262 3rd edition 1.5 5.7 Nov 2006 Internet Explorer 7.0 ECMA 262 3rd edition + ECMA 327 (ES CP) 1.5 5.8 Mar 2009 Internet Explorer 8.0 & Internet Explorer Mobile 6.0 ECMA 262 3rd edition + ECMA 327 (ES CP) + JSON (RFC 4627) 1.5
JScript is also available on Windows CE (included in Windows Mobile, optional in Windows Embedded CE). The Windows CE version lacks Active Debugging.
JScript .NET (CLI) (полное описание)
JScript NET – это реализация JScript в Microsoft .NET. Это язык CLI и, следовательно, наследует мощные возможности, но лишен многих функций оригинального языка JScript, что делает его неподходящим для многих сценариев использования. JScript NET можно использовать для страниц ASP.NET и для полноценных .NET-приложений, однако отсутствие поддержки этого языка в Microsoft Visual Studio делает его скорее путем обновления для классического ASP с использованием классического JScript, чем новым полноценным языком.
JScript NET is a Microsoft NET implementation of JScript. It is a CLI language and thus inherits very powerful features, but lacks many features of the original JScript language, making it inappropriate for many scripting scenarios. JScript NET can be used for ASP. NET pages and for complete NET applications, but the lack of support for this language in Microsoft Visual Studio places it more as an upgrade path for classic ASP using classic JScript than as a new first class language. Version Platform Date Introduced with Based on 7.0 Desktop CLR 1.0 2002 01 05 Microsoft NET Framework 1.0 ECMA 262 3rd edition 7.1 Desktop CLR 1.1 2003 04 01 Microsoft NET Framework 1.1 ECMA 262 3rd edition 8.0 Desktop CLR 2.0 2005 11 07 Microsoft NET Framework 2.0 ECMA 262 3rd edition10.0 Desktop CLR 4.0 2010 08 03 Microsoft NET Framework 4.0 ECMA 262 3rd edition
JScript NET is not supported in the NET Compact Framework. Note: JScript NET versions are not related to classic JScript versions. JScript NET is a separate product. Even though JScript NET is not supported within the Visual Studio IDE, its versions are in sync with other NET languages versions (C#, VB. NET, VC++) that follow their corresponding Visual Studio versions. NET Framework 3.0 and 3.5 are built on top of 2.0 and do not include the newer JScript. NET release (version 10.0 for NET Framework 4.0). (Source: file version of jsc. exe JScript. NET compiler and Microsoft. JScript. dll installed with NET Framework)
Версия | Платформа | Дата выпуска | Основан на
------- | -------- | -------- | --------
7.0 | Desktop CLR 1.0 | 05.01.2002 | Microsoft .NET Framework 1.0, ECMA 262 3-е издание
7.1 | Desktop CLR 1.1 | 01.04.2003 | Microsoft .NET Framework 1.1, ECMA 262 3-е издание
8.0 | Desktop CLR 2.0 | 07.11.2005 | Microsoft .NET Framework 2.0, ECMA 262 3-е издание
10.0 | Desktop CLR 4.0 | 03.08.2010 | Microsoft .NET Framework 4.0, ECMA 262 3-е издание
JScript NET is a Microsoft NET implementation of JScript. It is a CLI language and thus inherits very powerful features, but lacks many features of the original JScript language, making it inappropriate for many scripting scenarios. JScript NET can be used for ASP. NET pages and for complete NET applications, but the lack of support for this language in Microsoft Visual Studio places it more as an upgrade path for classic ASP using classic JScript than as a new first class language. Version Platform Date Introduced with Based on 7.0 Desktop CLR 1.0 2002 01 05 Microsoft NET Framework 1.0 ECMA 262 3rd edition 7.1 Desktop CLR 1.1 2003 04 01 Microsoft NET Framework 1.1 ECMA 262 3rd edition 8.0 Desktop CLR 2.0 2005 11 07 Microsoft NET Framework 2.0 ECMA 262 3rd edition10.0 Desktop CLR 4.0 2010 08 03 Microsoft NET Framework 4.0 ECMA 262 3rd edition
JScript NET is not supported in the NET Compact Framework. Note: JScript NET versions are not related to classic JScript versions. JScript NET is a separate product. Even though JScript NET is not supported within the Visual Studio IDE, its versions are in sync with other NET languages versions (C#, VB. NET, VC++) that follow their corresponding Visual Studio versions. NET Framework 3.0 and 3.5 are built on top of 2.0 and do not include the newer JScript. NET release (version 10.0 for NET Framework 4.0). (Source: file version of jsc. exe JScript. NET compiler and Microsoft. JScript. dll installed with NET Framework)
JScript NET не поддерживается в .NET Compact Framework.
Примечание: версии JScript NET не связаны с классическими версиями JScript. JScript NET – это отдельный продукт. Несмотря на то, что JScript NET не поддерживается в среде разработки Visual Studio IDE, его версии синхронизированы с версиями других языков .NET (C#, VB.NET, VC++), которые соответствуют версиям Visual Studio. .NET Framework 3.0 и 3.5 построены на основе 2.0 и не включают более новую версию JScript.NET (версия 10.0 для .NET Framework 4.0). (Источник: версия файла jsc.exe – компилятора JScript.NET и Microsoft.JScript.dll, устанавливаемых с .NET Framework).
JScript NET is a Microsoft NET implementation of JScript. It is a CLI language and thus inherits very powerful features, but lacks many features of the original JScript language, making it inappropriate for many scripting scenarios. JScript NET can be used for ASP. NET pages and for complete NET applications, but the lack of support for this language in Microsoft Visual Studio places it more as an upgrade path for classic ASP using classic JScript than as a new first class language. Version Platform Date Introduced with Based on 7.0 Desktop CLR 1.0 2002 01 05 Microsoft NET Framework 1.0 ECMA 262 3rd edition 7.1 Desktop CLR 1.1 2003 04 01 Microsoft NET Framework 1.1 ECMA 262 3rd edition 8.0 Desktop CLR 2.0 2005 11 07 Microsoft NET Framework 2.0 ECMA 262 3rd edition10.0 Desktop CLR 4.0 2010 08 03 Microsoft NET Framework 4.0 ECMA 262 3rd edition
JScript NET is not supported in the NET Compact Framework. Note: JScript NET versions are not related to classic JScript versions. JScript NET is a separate product. Even though JScript NET is not supported within the Visual Studio IDE, its versions are in sync with other NET languages versions (C#, VB. NET, VC++) that follow their corresponding Visual Studio versions. NET Framework 3.0 and 3.5 are built on top of 2.0 and do not include the newer JScript. NET release (version 10.0 for NET Framework 4.0). (Source: file version of jsc. exe JScript. NET compiler and Microsoft. JScript. dll installed with NET Framework)