发布时间:2024-08-25 18:01
http://blog.csdn.net/brave_coder/article/details/69802881
1、
2、
3、Create .babelrc
in the project root folder with the following contents:
{ "presets": ["es2015","es2017"] }
4、Run your script with babel-node
$ babel-node async.js
原网址:stackoverflow