JScript.NET或者JScript是什么?

http://zh.wikipedia.org/wiki/JScript

维基百科,自由的百科全书

JScript是由微软公司开发的活动脚本语言,是微软对ECMAScript规范的实现。

JScript最初是随Internet Explorer 3.0于1996年8月发布。在网络程序员谈论Internet Explorer中的JavaScript的时候,他们实际上是指JScript。和其他活动脚本一样,它后来也被Windows Script HostWSH)和Active Server Pages所支持。典型的JScript源文件使用的扩展名.js

JScript最新的版本是基于尚未定稿的ECMAScript4.0版规范的JScript .NET,并且可以在微软的.Net环境下编译。JScript在ECMA的规范上增加了许多特性。

目录

   [隐藏

[编辑]版本

[编辑]JScript

版本 发布日期 实现 基于 Approx. JavaScript
1.01996年8月Internet Explorer 3.0Netscape JavaScript1.0
2.01997年1月Windows IIS 3.0Netscape JavaScript1.1
3.01997年10月Internet Explorer 4.0ECMA-262 1st edition1.3
4.0 Visual Studio 6.0 (Visual InterDev的一部分)ECMA-262 1st edition1.3
5.01999年5月Internet Explorer 5.0ECMA-262 2nd edition1.4
5.1 Internet Explorer 5.01ECMA-262 2nd edition1.4
5.52000年7月Internet Explorer 5.5 & Windows CE 4.2ECMA-262 3rd edition1.5
5.62001年10月Internet Explorer 6.0 & Windows CE 5.0ECMA-262 3rd edition1.5
5.72006年11月Internet Explorer 7.0ECMA-262 3rd edition + ECMA-327 (ES-CP)1.5
5.82009年5月Internet Explorer 8.0ECMA-262 3rd edition + ECMA-327 (ES-CP) + JSON (RFC 4627)1.5
9.02011年3月Internet Explorer 9.0ECMA-262 5th edition1.8.1

[编辑]Managed JScript

版本 平台 发布日期 实现 基于
1.0.0.0Desktop CLR 2.02007年ASP.NET Futures (2007年7月 preview)ECMA-262 3rd edition
1.1.20625.0CoreCLR 1.12007年Microsoft Silverlight 1.1 Alpha (2007年9月 refresh)ECMA-262 3rd edition

[编辑]JScript .NET

版本 平台 发布日期 实现 基于
7.0Desktop CLR 1.02002年1月5日Microsoft .NET Framework 1.0ECMA-262 3rd edition
7.1Desktop CLR 1.12003年4月1日Microsoft .NET Framework 1.1ECMA-262 3rd edition
8.0Desktop CLR 2.02005年11月7日Microsoft .NET Framework 2.0ECMA-262 3rd edition

[编辑]参见

J#
import System.*;
import System.Collections.*;

public class SamplesArrayList
{
    public static void main(String[] args)
    {
        // Creates and initializes a new ArrayList.
        ArrayList myAL = new ArrayList();

        myAL.Add("The");
        myAL.Add("quick");
        myAL.Add("brown");
        myAL.Add("fox");

        // Creates a synchronized wrapper around the ArrayList.
        ArrayList mySyncdAL = ArrayList.Synchronized(myAL);

        // Displays the sychronization status of both ArrayLists.
        Console.WriteLine("myAL is {0}.", myAL.get_IsSynchronized()
            ? "synchronized" : "not synchronized");
        Console.WriteLine("mySyncdAL is {0}.", mySyncdAL.get_IsSynchronized()
            ? "synchronized" : "not synchronized");
    } //main
} //SamplesArrayList
/* 
 This code produces the following output.
 
 myAL is not synchronized.
 mySyncdAL is synchronized.
 */

import System;
import System.Collections;

// Creates and initializes a new ArrayList.
var myAL : ArrayList = new ArrayList();
myAL.Add( "The" );
myAL.Add( "quick" );
myAL.Add( "brown" );
myAL.Add( "fox" );

// Creates a synchronized wrapper around the ArrayList.
var mySyncdAL : ArrayList  = ArrayList.Synchronized( myAL );

// Displays the sychronization status of both ArrayLists.
Console.WriteLine( "myAL is {0}.", myAL.IsSynchronized ? "synchronized" : "not synchronized" );
Console.WriteLine( "mySyncdAL is {0}.", mySyncdAL.IsSynchronized ? "synchronized" : "not synchronized" );
 
 /* 
 This code produces the following output.
 
 myAL is not synchronized.
 mySyncdAL is synchronized.
 */ 
据我所知,JScript仅仅支持到.NET 2.0 Framework.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值