摘要: 1.遍历子元素 children()方法可以用来获取元素的所有子元素 var $section =$("section").children(); 获取<section>的子元素,但不包含子元素的子元素 alert($section.length); 2.遍历同辈元素 next() 用于获取紧邻匹配 阅读全文