1、首先安装:babel-polyfill npm install babel-polyfill --save2、然后引入:babel-polyfill import "babel-polyfill";在build目录下,webpack.base.conf.js里entry: { app: ["babel-polyfill", "./src/main.js"] },