jQuery :odd 选择器
jQuery 教程
· 2019-03-10 07:28:23
实例
选择每个相隔的(奇数)<tr> 元素:
$("tr:odd")
定义和用法
:odd 选择器选取带有奇数索引号的每个元素(比如:1、3、5 等等)。
索引值从 0 开始,第一个元素是偶数 (0),第二个元素是奇数 (1),以此类推。
最常见的用法:与其他选择器一起使用,选取指定组合中每个奇数序号的元素(如上面的实例)。
提示:请使用 :even 选择器来选取带有偶数序号的元素。
语法
$(":odd")
点击查看所有 jQuery 教程 文章: https://www.codercto.com/courses/l/35.html
Distributed Systems
Sukumar Ghosh / Chapman and Hall/CRC / 2014-7-14 / USD 119.95
Distributed Systems: An Algorithmic Approach, Second Edition provides a balanced and straightforward treatment of the underlying theory and practical applications of distributed computing. As in the p......一起来看看 《Distributed Systems》 这本书的介绍吧!