jQuery :gt() 选择器

jQuery 教程 · 2019-03-10 11:27:51

实例

选择前 4 个之后的所有 <tr> 元素:

$("tr:gt(3)")

定义和用法

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

index 值从 0 开始。

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

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

语法

$(":gt(index)")

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

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

查看所有标签

Web Design for ROI

Web Design for ROI

Lance Loveday、Sandra Niehaus / New Riders Press / 2007-10-27 / USD 39.99

Your web site is a business--design it like one. Billions of dollars in spending decisions are influenced by web sites. So why aren't businesses laser-focused on designing their sites to maximize thei......一起来看看 《Web Design for ROI》 这本书的介绍吧!

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

在线压缩/解压 HTML 代码

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

URL 编码/解码

UNIX 时间戳转换
UNIX 时间戳转换

UNIX 时间戳转换