编程学问
  • 文章
  • 问题
  • 读书
  • 关于
  • 登录
jQuery API 开发手册

返回值:Array<Element>:eq(index)

概述

匹配一个给定索引值的元素

参数

indexNumberV1.0

从 0 开始计数

示例

描述:

查找第二行

HTML 代码:
<table>
  <tr><td>Header 1</td></tr>
  <tr><td>Value 1</td></tr>
  <tr><td>Value 2</td></tr>
</table>
jQuery 代码:
$("tr:eq(1)")
结果:
[ <tr><td>Value 1</td></tr> ]
相关文章
css content indexcss speech indexcss angle data types and units indexeq index| index jquery eq index jqueryget index jquery gt index jqueryindex selector|element jquery lt index jqueryjquery eq index| index jquery eq index jquery get index jquery gt index jquery index selector|element jquery lt index php deque returns the value at a given indexphp vector updates a value at a given indexphp gmagick returns the color of the specified colormap indexphp judy search for the next absent index in the judy arrayphp solrclient adds a collection of solrinputdocument instances to the index
关注编程学问公众号
编程学问网 湘ICP备20001732号