使用问题 Element-ui官网上单独引用MessageBox的话需要在import中加入MessageBox。 但是在使用时报了this.$alert is not a function 解决办法 在element.js中加入Vue.prototype.$XXX = MessageBox 在使用时用this. $XXX.alert