HTML DOM Element ownerDocument 属性
定义和用法
ownerDocument 属性返回节点的所有者文档,以 Document 对象。
在 HTML 中,HTML 文档本身始终是元素的 ownerDocument。
请在我们的 Document 对象参考手册 中阅读有关 Document 对象的更多信息。
语法
node.ownerDocument
技术细节
| 返回值: | 以 Document 对象返回节点的所有者文档。 |
|---|---|
| DOM 版本: | Core Level 2 Node Object |
浏览器支持
| Chrome | Edge | Firefox | Safari | Opera |
|---|---|---|---|---|
| Chrome | Edge | Firefox | Safari | Opera |
| 支持 | 支持 | 支持 | 支持 | 支持 |