关于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



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