eq

阅读数:1073 发布时间:2016-09-30 09:15:09

作者:w4why 标签: eq zepto

eq

eq(index) ⇒ collection
从当前对象获取给定索引值的元素,以0为开头

$('li').eq(0)   //=> only the first list item
$('li').eq(-1)  //=> only the last list item

相关文章推荐: