easyui的提示框

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'
});

在這裏插入圖片描述

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章