jQuery :even 选择器

jQuery 教程 · 2019-03-10 07:12:38

实例

选择每个相隔的(偶数)<tr> 元素:

$("tr:even")

定义和用法

:even 选择器选取带有偶数索引号的每个元素(比如:0、2、4 等等)。

索引值从 0 开始,第一个元素是偶数 (0),第二个元素是奇数 (1),以此类推。

最常见的用法:与其他选择器一起使用,选取指定组合中每个偶数序号的元素(如上面的实例)。

提示:请使用 :odd 选择器来选取带有奇数序号的元素。

语法

$(":even")

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

查看所有标签

Text Algorithms

Text Algorithms

Maxime Crochemore、Wojciech Rytter / Oxford University Press / 1994

This much-needed book on the design of algorithms and data structures for text processing emphasizes both theoretical foundations and practical applications. It is intended to serve both as a textbook......一起来看看 《Text Algorithms》 这本书的介绍吧!

HTML 压缩/解压工具
HTML 压缩/解压工具

在线压缩/解压 HTML 代码

SHA 加密
SHA 加密

SHA 加密工具

html转js在线工具
html转js在线工具

html转js在线工具