iframe跨页面调用

xiaoxiao2021-02-28  17

1.获取另一个页面的值

var value=$("#page",top.frmright.document).find("iframe#page_tab1_index1").contents().find("#test").text();

2.调用另一个页面的方法

$("#page",top.frmright.document).find("iframe#page_tab1_index1")[0].contentWindow.getFocus(treeNode.other2,treeNode.other3);

转载请注明原文地址: https://www.6miu.com/read-1999971.html

最新回复(0)