layer.open({
type: 2,
skin: 'layui-layer-demo', //样式类名
title: '标题',
closeBtn: 0, //不显示关闭按钮
anim: 2,
area: ['893px', '600px'],
shadeClose: true, //开启遮罩关闭
content: '。。。。.html'
});
这是layui弹出层的代码,其中,type属性表示弹出层的类型,type为1 ,content显示的是纯文本内容,type为2,content为跳转页面