Dom(js)操作笔记

dom中空白换行符也也是一个文本节点,因此需要代替标准的previousSibling,nextSIbling,firstChild,lastChild以及parentNode来避开空白节点

以下是dom导航替代函数

Read the rest of this entry »