close

此页面由社区从英文翻译而来。了解更多并加入 MDN Web Docs 社区。

View in English Always switch to English

Window:document 属性

基线 广泛可用

自 2015年7月 起,此特性已在主流浏览器中得到支持,可在大多数设备和浏览器版本中正常使用。

window.document 返回 window 中包含的 document 的引用。

document 对象。

示例

js
console.log(window.document.title);

规范

规范
HTML
# dom-document-dev

浏览器兼容性