jQuery :lt() 选择器

jQuery 教程 · 2019-03-10 11:42:06

实例

选取前 4 个 <tr> 元素:

$("tr:lt(4)")

定义和用法

:lt() 选择器选取 index 值小于指定数字的元素。

index 值从 0 开始。

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

提示:请使用 :gt selector 来选取 index 值大于指定数字的元素。

语法

$(":lt(index)")

参数 描述
index 必需。规定要选择的元素。
会选取 index 值小于指定数字的元素。

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

查看所有标签

Designing Programmes

Designing Programmes

Karl Gerstner / Springer Verlag / 2007 / $499.00

Karl Gerstnera (TM)s work is a milestone in the history of design. One of his most important works is Designing Programmes, which is presented here in a new edition of the original 1964 publication. I......一起来看看 《Designing Programmes》 这本书的介绍吧!

正则表达式在线测试
正则表达式在线测试

正则表达式在线测试

RGB HSV 转换
RGB HSV 转换

RGB HSV 互转工具

RGB CMYK 转换工具
RGB CMYK 转换工具

RGB CMYK 互转工具