JQuery跨Iframe选择

it2026-03-17  5

 

从父页面中选择iframe中的元素:

$( ' #btnCancel ' ,$( ' #PopFrame ' )[ 0 ].contentWindow.document)

 

 从iframe页面中选择父页面中的元素:

$( " #PopContainer " ,parent.document)

 

转载于:https://www.cnblogs.com/davidyang78/archive/2010/08/17/1801262.html

相关资源:数据结构—成绩单生成器
最新回复(0)