babel polyfill babel-polyfill 会效仿一个es6环境 安装 1 npm install --save babel-polyfill 在项目中使用 1 import 'babel-polyfill' 注:我是用在 vue-cli 中