var value=$("#page",top.frmright.document).find("iframe#page_tab1_index1").contents().find("#test").text(); ---操作另一iframe dom对象
$("#page",top.frmright.document).find("iframe#page_tab1_index1")[0].contentWindow.getFocus(treeNode.other2,treeNode.other3); --调用另一iframe 方法
$("#page",top.frmright.document).find("iframe#page_tab1_index1")[0].contentWindow.getFocus(treeNode.other2,treeNode.other3); --调用另一iframe 方法
本文介绍了一种通过jQuery操作另一个iframe中的DOM元素的方法,并演示了如何获取特定元素的文本内容。此外,还展示了如何调用另一个iframe内的自定义方法。
7万+

被折叠的 条评论
为什么被折叠?



