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 July 2015.

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

语法

js
new Document()

参数

无。

规范

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

浏览器兼容性

BCD tables only load in the browser