2005年6月20日 星期一

觀看 ECMA-262 文件

因為工作所需,所以看了不少 JavaScript 的程式,今天乾脆將 JavaScript 的標準拿來研究研究。
  • ECMAScript source text is represented as a sequence of characters in the Unicode character encoding, version 2.1 or later, using the UTF-16 transformation format.
  • Tokens - Keywords
    The following tokens are ECMAScript keywords and may not be used as identifiers in ECMAScript programs.
    break    else       new       var
    case finally return void
    catch for switch while
    continue function this with
    default if throw
    delete in try
    do instanceof typeof
  • Tokens - Future Reserved Words
    abstract enum       int       short
    boolean export interface static
    byte extends long super
    char final native synchronized
    class float package throws
    const goto private transient
    debugger implements protected volatile
    double import public
  • Two regular expression literals in a program evaluate to regular expression objects that never compare as === to each other even if the two literals' contents are identical.

沒有留言: