Document()

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

语法

new Document();

规范

规范 状态 备注
DOM
Document
Living Standard Initial definition.

浏览器兼容性

Update compatibility data on GitHub
DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
Document() constructorChrome Full support 60Edge Full support YesFirefox Full support YesIE No support NoOpera Full support 47Safari Full support YesWebView Android Full support 60Chrome Android Full support 60Firefox Android Full support YesOpera Android Full support 44Safari iOS Full support YesSamsung Internet Android Full support 8.0

Legend

Full support  
Full support
No support  
No support