jQuery获取iframe的document对象的方法


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

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

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


« 
» 
快速导航

Copyright © 2016 phpStudy | 豫ICP备2021030365号-3