javascript - When using mint-ui under Google Chrome, an error will be reported! Firefox and 360 Browser will not
巴扎黑
巴扎黑 2017-05-19 10:31:36
0
2
681

Error code
Uncaught TypeError: Object.assign is not a function

The execution code is as follows:
npm install -g vue-cli
vue init webpack projectname
npm install --save mint-ui

main.js:
import MintUI from 'mint-ui'
import 'mint-ui/lib/style.css'

Vue.use(MintUI)

巴扎黑
巴扎黑

reply all(2)
洪涛

What version of chrome? Try it on the consoleObject.assign函数存在不,不存在的话估计得用polyfill

Ty80

The Google version is too low and does not support Object.assign. Please update

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template