1.在父HTML打开子HTML
layer.open({
type: 2,
area: ['100%', '100%'],
fix: false, //不固定
maxmin: true,
content: ctx +'/test/child.html'//打开子HTML
});
2.在子HTML中向父HTML传值
parent.$('#testId').val($("#testChildId").val());
3.在子HTML获取父HTML某一属性的值
window.parent.$("#parentId").val();