【发布时间】:2013-07-15 13:57:46
【问题描述】:
我在jsfiddle 上有此代码。
HTML:
<object type="text/html" data="http://www.w3.org/" style="width:100%; height:100%;position: absolute;bottom: 0;"></object>
JS:
console.log($('object').find('*').length);
在标签中有一个奇怪的 #document 标签,我在那里找不到任何标签控制台说,有零个元素。
如何从 <object> 中的 DOM 读取数据? <object> 中的#document 是什么?
【问题讨论】: