访问节点的方法:1、使用ownerDocument属性;2、使用parentNode属性;3、使用childNodes属性;4、使用firstChild属性;5、使用lastChild属性;6、使用nextSibling属性等。
javascript中创建节点的方法:1、createElement()方法,可以创建元素节点;2、createTextNode()方法,可以创建文本节点;3、createAttribute()方法,可以创建属性节点
访问节点的方法:1、使用ownerDocument属性;2、使用parentNode属性;3、使用childNodes属性;4、使用firstChild属性;5、使用lastChild属性;6、使用nextSibling属性等。
javascript中创建节点的方法:1、createElement()方法,可以创建元素节点;2、createTextNode()方法,可以创建文本节点;3、createAttribute()方法,可以创建属性节点