摘要: document方法:getElementById(id)Node返回指定结点的引用getElementsByTagName(name)NodeList返回文档中所有匹配的元素的集合createElement(name)NodeNodecreateTextNode(text)Node创建一个纯文本结点ownerDocumentDocument指向这个节点所属的文档documentElementNode返回html节点document.bodyNode返回body节点element方法:getAttribute(attributeName)String返回指定属性的值setAttribute(a 阅读全文
posted @ 2012-01-10 15:52 >3< 阅读(164) 评论(0) 推荐(0) 编辑