编程学问
  • 文章
  • 问题
  • 读书
  • 关于
  • 登录
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> ]
相关文章
jquery easyui drag and drop rows in datagrid 可拖放行的数据表格 jquery easyui tagbox 标签框 jquery easyui form 表单 jquery easyui tree 树 ajaxsend callback jquery attribute!=value jquerycallbacks.remove callbacks jqueryeq 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 ziparchive revert all changes done to an entry at the given index
关注编程学问公众号
编程学问网 湘ICP备20001732号