1、Babel是一个广泛使用的转码器,可以将ES6代码转为ES5代码,从而在现有环境执行。 babel-polyfill 的文档说明 Babel 入门教程 Babel 的github 2、安装babel-polyfill npm install babel-polyfill --save