eightqueen
V2EX  ›  Node.js

nodejs 对 es6 支持情况怎么样啊?

  •  
  •   eightqueen · Jun 22, 2015 · 8354 views
    This topic created in 4162 days ago, the information mentioned may be changed or developed.

    所有特性都支持要到什么时候?

    5 replies  •  2015-06-23 17:31:59 +08:00
    yakczh
    yakczh
    Jun 22, 2015
    2
    http://fortunejs.com/

    ```A
    import fortune from 'fortune'
    import http from 'http'

    const app = fortune.create()
    const server = http.createServer(fortune.net.http(app))
    ```
    写起来跟python差不多,终于可以不用蛋疼的缩进了
    zhangxiao
    zhangxiao
    Jun 23, 2015
    3
    babel, babel-node
    coolicer
    coolicer
    Jun 23, 2015
    4
    可以通过楼上这些从 es6 to es5实现
    hussion
    hussion
    Jun 23, 2015
    5
    支持情况主要取决于v8的支持情况,个人觉得到nodejs 2.0版本发布的时候,有可能完全支持ES6全部特性
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2155 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 13:28 · PVG 21:28 · LAX 05:28 · JFK 08:28
    ♥ Do have faith in what you're doing.