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://codercto.com/courses/l/35.html
The Dream Machine
M. Mitchell Waldrop / Penguin Books / 2002-8 / USD 16.00
While most people may not be familiar with the name J. C. R. Licklider, he was the guiding spirit behind the greatest revolution of the modern era. At a time when most computers were big, ponderous ma......一起来看看 《The Dream Machine》 这本书的介绍吧!