大家好,又见面了,我是你们的朋友全栈君。
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为跳转页面
发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/130529.html原文链接:https://javaforall.net