通过script src引入ElementUI时,使用语句:window.ELEMENT.MessageBox.alert(xxx) 调用弹出框。
window.ELEMENT.MessageBox.alert(xxx)