右边 100%高
layer.open({
type: 2,
title: false,
shadeClose: true,
shade: 0.1,
area: ['800px', '100%'],
offset: 'rt',
move: false,
scrollbar: false,
content: url
});
function cusHandle(title) {
layer.confirm(title, {
btn: ['禁言', '拉黑'],
title: false,
area: ['300px', '160px'],
shadeClose: true,
scrollbar: false
}, function () {
alert('禁言');
}, function () {
alert('拉黑')
});
}
当layer以iframe层的方式弹出新的窗口(子页面)
- var parentId=parent.$("#id").val();
- parent.location.reload();
关闭layer
closePop:function (time) {
var index = parent.layer.getFrameIndex(window.name);
setTimeout(function () {
parent.layer.close(index);
},time||2000);
},
layer.closeAll('iframe');