1.alert方法,提示框
$.messager.alert('title','content','info')
參數是:標題,內容,提示圖標
提示圖標有:info warning error question
2.confirm方法,確認框
$.messager.confirm('title','info',function (r) {
// 回掉函數,r是確定還是去掉,確定true 取消 false
})
3.show方法,歡迎框
$.messager.show({
title:'title',
msg:'welcome to China',
timeout:5000,
showType:'slide'
});