IFrame access outside or inside iframe的坑

1. outside to inside frames[id].contentWindow

frames[iframe-selecter].contentWindow.object

 $(ifram-selecter).contents().find(selecter)

2. inside to outside $(window.parent)

$(window.parent)[0].object;

$(window.parent.document).contents().find(selecter);

转载于:https://www.cnblogs.com/yulin10/p/11608157.html

你可能感兴趣的:(IFrame access outside or inside iframe的坑)