document对象 什么是document对象常用方法write()getElementById()getElementByName()getElementByTagName() 什么是document对象 每个载入浏览器的html文档都会成为document对象 常用方法 write() 1.向页面输出数据 2.向页面输入html代码 getElementById() 通过元素的id属性得到这个元素。 getElementByName() 通过class属性来获得这一群元素 getElementByTagName() 通过标签名获得这个标签元素集合