js layer.js

时间:2023-03-09 01:16:01
js layer.js

var index = parent.layer.getFrameIndex(window.name);
parent.layer.close(index);

关闭弹出页

全屏弹出页面

layer.open({
type: 2,
skin: 'layui-layer-lan',
title: ['title', false],
shadeClose: true,
maxmin: true,
shade: [0.4, '#000', false],
fix: false,
borderWidth: 5,
area: ['100%', '100%'],
content: url,
end: function () {

}
});

layer.msg(‘警告', { icon: 7 });