function selectWorker(){ callback = function(index, layero) { let iframeWin = layero.find('iframe')[0]; iframeWin.contentWindow.submitHandler(index, layero); console.log(iframeWin) console.log(iframeWin.contentWindow.document.getElementById("workman").value) console.log(iframeWin.contentWindow.document.getElementById("form-human-add")) } layer.open({ type: 2, title: '派工人员', shadeClose: true, shade: 0.8, area: ['90%', '90%'], btn: ['确定', '关闭'], content: ctx + "maintenance/human/add", yes: callback, cancel: function(index) { return true; } }); }
contentWindow 获得子页面值
最新推荐文章于 2024-04-17 17:24:33 发布