比如我使用這個提示框 直接在方法里面加入這個MessageBox那一段嗎?我試了一下但是報錯了 怎么回事?我已經(jīng)在入口文件全局引入mintui了<button @click=MessageBox>aaaa</button>methods: {
MessageBox({
title: '提示', //提示unexpected token
message: '確定執(zhí)行此操作?',
showCancelButton: true
})
}
1 回答

陪伴而非守候
TA貢獻1757條經(jīng)驗 獲得超8個贊
你用錯了:
methods:{ MessageBox(){ MessageBox({ title: '提示', message: '確定執(zhí)行此操作?', showCancelButton: true }) } }
添加回答
舉報
0/150
提交
取消