jQuery :not() 选择器

jQuery 教程 · 2019-03-10 11:58:19

实例

选取除了 class="intro" 元素以外的所有 <p> 元素:

$("p:not(.intro)")

定义和用法

:not() 选择器选取除了指定元素以外的所有元素。

最常见的用法:与其他选择器一起使用,选取指定组合中除了指定元素以外的所有元素(如上面的实例)。

语法

$(":not(selector)")

参数 描述
selector 必需。规定不选择的元素。
该参数接受任何类型的选择器。

点击查看所有 jQuery 教程 文章: https://codercto.com/courses/l/35.html

查看所有标签

Parsing Techniques

Parsing Techniques

Dick Grune、Ceriel J.H. Jacobs / Springer / 2010-2-12 / USD 109.00

This second edition of Grune and Jacobs' brilliant work presents new developments and discoveries that have been made in the field. Parsing, also referred to as syntax analysis, has been and continues......一起来看看 《Parsing Techniques》 这本书的介绍吧!

JS 压缩/解压工具
JS 压缩/解压工具

在线压缩/解压 JS 代码

URL 编码/解码
URL 编码/解码

URL 编码/解码

XML 在线格式化
XML 在线格式化

在线 XML 格式化压缩工具