一些对比

1. childNodes also includes e.g. text nodes and comments. To skip them, use children instead ~

2. parentNode returns directly containing element, while offsetParent returns the closest positioned containing element;

posted @ 2015-06-02 12:02  林大勇  阅读(125)  评论(0)    收藏  举报