父页面
layer.open({
type: 2,
title: '',
shadeClose: true,
shade: 0.8,
area: this.setpage(),
content: '/efdGzzd/toDiagnosticReport/' + id,
success: function (layero, index) {
var iframe = window['layui-layer-iframe' + index]; //得到子页面层的BODY
iframe.child(“123”);
}
})
子页面
function child(d) {
console.log(d)
}