dom

DOM的原子是元素节点


获取元素方式
1、getElementById
2、getElementsByTagName
3、getElementsByClassName


获取和设置属性
getAttribute
setAttribute


childNodes属性
nodeType属性
nodeValue属性
firstChild和lastChild属性
parentNode属性
lastChild属性
appendChild属性
insertChild属性
nextSibling属性

posted @ 2017-07-13 16:45  紫陀螺Echo  阅读(101)  评论(0编辑  收藏  举报