当前位置:Gxlcms > JavaScript > jQuery获取iframe的document对象的方法

jQuery获取iframe的document对象的方法

时间:2021-07-01 10:21:17 帮助过:3人阅读

获取iframe的document对象的目的就是进行dom的操作

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

这样输出来的结果是:document对象

人气教程排行