基本拟态框:
layer.open({
type: 1, //弹窗类型
title: '添加信息', //显示标题
closeBtn: 1, //是否显示关闭按钮
maxmin: false, //是否显示放大缩小
fadeIn: 3000,
shadeClose: true, //显示模态窗口
skin: 'layui-layer-rim', //加上边框
area: ['500px', '500px'],//拟态框宽高
content: (加载内容),
btn: ['确定', '取消'],
btn1:function(){}
})
延时关闭拟态框:
layer.open({
content: '用style设置你想要的样式',
style: 'background-color:#09C1FF; color:#fff; border:none;',
time: 2000
});
提示拟态框:
layer.msg('提示');