子窗体赋值给父窗体:
parent.$('#Receiver').val(typearr);
//关闭子弹窗
var index = parent.layer.getFrameIndex(window.name); //获取窗口索引 parent.layer.close(index);
父页面获得子窗体的值
var index = parent.layer.getFrameIndex(window.name); //获取窗口索引 var body = layer.getChildFrame('body', index); var Notes = $.trim(body.contents().find("#txtCancelNotes").val());
控制弹出层的位置
parent.layer.alert("请填写变更人!");
重新定义layer.open的高
var index = parent.layer.getFrameIndex(window.name); parent.layer.style(index, { height: $(".popup").height() + 60, }); window.REF.ResetlayerOpenHight($(".popup").height());
https://blog.csdn.net/a669277756/article/details/78741804