父:
layer.open({
type: 2,
title: "标题",
shade: 0.5,
area: [window.screen.width / 2 + 'px', window.screen.height / 2 + 'px'], //宽高
anim: 2,
content: '{:url('applyGet')}?id='+ids,
success: function (layero, index) {
var iframe = window['layui-layer-iframe' + index];//拿到iframe元素
iframe.child(checkData)//向此iframe层方法 传递参数
}
});
子:
function child(d) {
console.log(d);
}