在iframe中如何獲取上上級的iframe呢?意思就是被嵌套在兩層iframe中。因為我想在【上級】和【上上級】的iframe添加全屏的屬性上級寫法如下:測試已經(jīng)生效$('iframe', window.parent.document).attr("allowfullscreen","true");上級的頁面仍在iframe中,如何選中上上級的iframe呢?
JQ獲取iframe父級的父級
慕碼人8056858
2019-02-24 12:15:11