阅读(2555) (0)

jQuery 其它选择器

2017-07-21 17:21:34 更新
[name="value"][name2="value2"]
多个 AND 条件
(“selector1, selector2, selectorN”)
多个 OR 条件
:not()
否定选择
(':contains("text")')
包含有指定内容的元素
:eq() :lt() :gt() :even :odd
列表索引选择(不支持负数)
(':has(selector)')
符合条件的再次过滤
:header
选择像 h1,h2,h3 这些标题元素
:only-child
仅有一个子元素的元素
:empty
空元素,即无内容也无子元素
:parent
非空元素