關於layer的常見用法

(1)普通消息提示


layer.open({
    content: content,
    skin: 'msg',
    time: 1.5
});

(2)數據加載中


layer.open({
    type: 2,
    shadeClose: false,
    content: '數據加載中,請稍後'

});  
(3)關閉所有彈出層


layer.closeAll();

(4)layer API文檔

http://layer.layui.com/mobile/api.html



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