文档分值:0

zepto >>> zepto >>> 操作函数

课程目录

操作函数
eq

eq

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

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

[ 该条目创建时间:2016-09-30 09:15:09 ]