jQuery 选择器

:animated 匹配在动画中的元素,该动画由jQuery产生

:contains(text) 匹配包含指定文本的元素

:disabled 匹配禁用元素

:empty 匹配没有子节点,没有文本内容的元素

:even 匹配列表中偶数序号的元素

:odd 匹配列表中的奇数序号的元素

:has(sel) 匹配的元素拥有匹配内嵌选择其sel的子孙元素

:not(sel)匹配的元素不匹配内嵌选择器sel

组合选择器

A >B  从A元素的子元素中,选取匹配B的元素

A+B  从A元素的下一个兄弟元素中,选取匹配B的元素

A~B   从A元素后面的兄弟元素中,选取匹配B的元素

选择器组

,分隔

选取方法

first()  

last()

slice()

filter()

not()

add()

find()

children()

next()

prev()

nextAll()

prevAll()

parent()

parents()

end() :  End the most recent filtering operation in the current chain and return the set of matched elements to its previous state.

 

posted @ 2018-08-25 15:09  CodingSherlock  阅读(97)  评论(0编辑  收藏  举报