- 祖先
. parent(); //上级祖先,单个祖先
. parents(); //上级所有祖先直到<HTML>
. parentsUntil( " div"); //从上级祖先到指定祖先div - 后代
. children("p.class"); //所有直接后代
. find("*"); //所有后代 - 同胞
. siblings();
. next(); //find behind siblings
. nextAll();
. nextUntil();
. prev(); //找前面的同胞
jQuery日记(4)--jQuery遍历
猜你喜欢
转载自blog.csdn.net/qq240814476/article/details/53039751
今日推荐
周排行