es-next, 阶段 0至阶段 4位建议

分享于 

3分钟阅读

GitHub

  繁體 雙語
es7-features
  • 源代码名称:es-next
  • 源代码网址:http://www.github.com/hemanth/es-next
  • es-next源代码文档
  • es-next源代码下载
  • Git URL:
    git://www.github.com/hemanth/es-next.git
    Git Clone代码到本地:
    git clone http://www.github.com/hemanth/es-next
    Subversion代码到本地:
    $ svn co --depth empty http://www.github.com/hemanth/es-next
    Checked out revision 1.
    $ cd repo
    $ svn up trunk
    

    stage-0到 stage-4 ECMAscript建议。

    目录:

    阶段 0:

    Stage-0

    // const classconstclassPoint { 
     constructor(x, y) {
     publicgetX() { return x; }
     publicgetY() { return y; }
     }
     toString() { 
     return`<${this.getX()}, ${this.getY()}>`;
     }
    }

    关系

    Stage-0

    x @ r // The object x is in the r relationship with what value?x @ r = y; // Store that x is in the r relationship with value y.

    String.prototype.at

    Stage-0

     
      
      
    '   
    abc   
     

    STA  PROP  ECM  ecma  ecmascript  Stage  
    相关文章