我过滤的 html 给了我
$.get(myURL, function(data) {
$(data).find("td.Chats").filter(':gt(5)').appendTo('#regions');
}, 'html')
结果:
<td class="Chats">Item 1</td>
<td class="Chats"></td>
<td class="Chats"></td>
<td class="Chats"></td>
<td class="Chats"></td>
<td class="Chats">Item 2</td>
<td class="Chats"></td>
<td class="Chats"></td>
<td class="Chats"></td>
<td class="Chats"></td>
<td class="Chats">Item 3</td>
<td class="Chats"></td>
<td class="Chats"></td>
<td class="Chats"></td>
<td class="Chats"></td>
我将如何获取带有文本的元素?还是每 5 次?