如何在node环境中,使用ES6

建立测试文件 mkdir test cd test npm init -y npm install --save-dev @babel/core @babel/cli @babel/preset-env @babel/node npm install --save @babel/polyfill touch babel.config.js touch index.js touch test.js
相关文章
相关标签/搜索