1.引入 <script src = "https://cdn.polyfill.io/v2/polyfill.min.js"></script>
或 <script type="text/javascript" src ="https://cdn.polyfill.io/v2/polyfill.min.js?features=es6"></script>
2.原因是ie不支持es6语法,需要导入依赖包
npm install --save-dev babel-polyfill
在main.js中引入: import “babel-polyfill”