子窗体赋值给父窗体:
parent.$('#Receiver').val(typearr);
//关闭子弹窗
var index = parent.layer.getFrameIndex(window.name); //获取窗口索引 parent.layer.close(index);