1、index.html代码
2、入口app.js的代码
3、报错信息
报错:Uncaught TypeError: Object.assign is not a function
怎么解决呢?
为情所困2017-07-06 10:38:27
你的浏览器太旧了, 不支持这个方法, Object.assign好像是es6才有的方法, 解决办法: 引入babel/ployfill
$ npm install babel-core --save-dev
import 'babel-core/polyfill'