企业🤖AI Agent构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
### 返回值:Array<Element(s)>:not(selector) ### 概述 去除所有与给定选择器匹配的元素 在jQuery 1.3中,已经支持复杂选择器了(例如:not(div a) 和 :not(div,a)) ### 参数 #### **selector**Selector*V1.0* 用于筛选的选择器 ### 示例 #### 描述: 查找所有未选中的 input 元素 ##### HTML 代码: ~~~ <input name="apple" /> <input name="flower" checked="checked" /> ~~~ ##### jQuery 代码: ~~~ $("input:not(:checked)") ~~~ ##### 结果: ~~~ [ <input name="apple" /> ] ~~~