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

View in English Always switch to English

Document:Document() 构造函数

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since ⁨2018年4月⁩.

Document 构造函数创建一个新的 Document 对象,该对象是浏览器中加载的网页,并作为页面内容的入口点。

语法

js
new Document()

参数

无。

规范

Specification
DOM
# ref-for-dom-document-document①

浏览器兼容性