<tr><td>garblegarble</td></tr>
<tr><td>goold</td></tr>
<tr><td>garblegfhjgarble</td></tr>
<tr><td>platinum</td></tr>
<tr><td>garblfgjfegarble</td></tr>
<tr><td>diamnodz</td></tr>
....
如何只选择TR 2,4,6,8,10 ......换句话说,结果是偶数?
答案 0 :(得分:4)
尝试:
//tr[position() mod 2 = 0]