jQuery獲取iframe的document對象的方法

獲取iframe的document對象的目的就是進行dom的操做dom

$(function() {
var result = $('#myframe').prop('contentWindow').document;
console.log(result);
});

這樣輸出來的結果是:document對象spa

相關文章
相關標籤/搜索