从这里下载Node
选择适合自己的版本,下载后安装。
First install theBabelcommand-line tools (requiresnpm):
Then,translate yoursrc/helloworld.jsfile to plain JavaScript:
src/helloworld.js
编译前:
编译后: