jQuery獲取iframe的document對象的方法_jquery
來源:懂視網(wǎng)
責(zé)編:小采
時間:2020-11-27 21:27:51
jQuery獲取iframe的document對象的方法_jquery
jQuery獲取iframe的document對象的方法_jquery:獲取iframe的document對象的目的就是進(jìn)行dom的操作 $(function() { var result = $('#myframe').prop('contentWindow').document; console.log(result); }); 這樣輸出來的結(jié)果是:document對象
導(dǎo)讀jQuery獲取iframe的document對象的方法_jquery:獲取iframe的document對象的目的就是進(jìn)行dom的操作 $(function() { var result = $('#myframe').prop('contentWindow').document; console.log(result); }); 這樣輸出來的結(jié)果是:document對象

獲取iframe的document對象的目的就是進(jìn)行dom的操作
這樣輸出來的結(jié)果是:document對象
聲明:本網(wǎng)頁內(nèi)容旨在傳播知識,若有侵權(quán)等問題請及時與本網(wǎng)聯(lián)系,我們將在第一時間刪除處理。TEL:177 7030 7066 E-MAIL:11247931@qq.com
jQuery獲取iframe的document對象的方法_jquery
jQuery獲取iframe的document對象的方法_jquery:獲取iframe的document對象的目的就是進(jìn)行dom的操作 $(function() { var result = $('#myframe').prop('contentWindow').document; console.log(result); }); 這樣輸出來的結(jié)果是:document對象