超級詳細的jQuey總結

普通選擇器 $(「ul」) 獲取頁面全部的ul標籤 $(「ul>li:nth-child(1)」) 獲取ul子元素中的第一個子元素 $(「ul>li:last-child」) 獲取ul子元素中的最後一個子元素 $(「ul>li.a」) 獲取ul下面li裏面類名爲a的元素 $(「li:nth-child(odd)」) 獲取li裏面的第奇數個元素 $(「li:nth-child(even)」) 獲取l
相關文章
相關標籤/搜索