参见英文答案 >
Are jQuery’s :first and :eq(0) selectors functionally equivalent? 3个
使用这两种方法检索集合中的第一个元素有什么区别?
使用这两种方法检索集合中的第一个元素有什么区别?
解决方法
取自jQuery 1.7.1的
live source code:
,first:function(){return this.eq(0)},last:function(){return this.eq(-1)}
结论:没有任何区别.