jQuery API | jQuery API 中英文对照版 - jQuery在线查询手册 |
gt(pos) |
gt(pos)
将匹配的元素集合缩减为给定位置之后的所有元素。这个元素在匹配元素集合中的位置变为0,而长度变成1。 返回值:jQuery 参数:
示例: $("p").gt(0) HTML 代码: <p>This is just a test.</p><p>So is this</p> 结果: [ <p>So is this</p> ] Reduce the set of matched elements to all elements after a given position. The position of the element in the set of matched elements starts at 0 and goes to length - 1. Return value: jQuery
Example: $("p").gt(0)Before: <p>This is just a test.</p><p>So is this</p>Result: [ <p>So is this</p> ] |