1.表单传值
var f =document.getElementById("form");
$("#outContent").contents().find("body").append("<div>sdjifdsjif</div>");
f.action = f.action;
$(".colName").attr("value", colName);
$(".rowData").attr("value", rowData);
$(".title").attr("value", title);
$(".file").attr("value", file);
f.submit();
}
2 form表单
<form action="/nfd/pages/proq/pro_detail.jsp" method="post" id="form" target="if">
<input type="hidden" name="colName" class="colName">
<input type="hidden" name="rowData" class="rowData">
<input type="hidden" name="title" class="title">
<input type="hidden" name="file" class="file">
</form>
3 其中target指定的是页面中的iframe的name值