^ 这个符号表示以什么开头ide
:has()选择器spa
选取全部包含有 <span> 元素在其内的 <p> 元素:$("p:has(span)")code
:not选择器co
$(‘li:not(:only-child)’)
//匹配全部的li,除了只有一个子元素的
background
$(‘li:not(:first-child)’);
//匹配除了在他父元素中是第一个子元素的LI
new
$(
"li :not(:first)"
).hide();
//隐藏除了第一个LI外的全部LI
:contains()选择器
选择全部包含 "is" 的 <p> 元素:
$("p:contains(is)")