document对象

无需声明即可调用

属性

描述

document.title

当前文档的标题

document.lastModified 

文档最后一次被修改的日期

document.URL

返回包含当前文档URL的字符串

document.domain 

返回当前文档的域

方法  

描述

document.write()

将文本写入文档(限制条件请参见第226页)

document.getElementByld()

返回与d属性值相匹配的元素(完整描述请参见第195页)

document.querySelectorAll()

返回一组元素,这些元素都符合参数中定义的CSS选择器(参见第202页)

document.createElement()

创建新元素(参见第222页)

document.create TextNode()

创建新的文本节点(参见第222页)

原文地址:https://www.cnblogs.com/max-hou/p/8858554.html