<tr tp='d' id='one'>
<td style='text-align:center;'><a class='rate-off' val='1' title='非常差' >1</a></td>
<td style='text-align:center;'><a class='rate-off' val='2' title='2' >2</a></td>
<td style='text-align:center;'><a class='rate-off' val='3' title='3' >3</a></td>
<td style='text-align:center;'><a class='rate-off' val='4' title='4' >4</a></td>
<td style='text-align:center;'><a class='rate-off' val='5' title='5' >5</a></td>
<td style='text-align:center;'><a class='rate-off' val='6' title='6' >6</a></td>
<td style='text-align:center;'><a class='rate-off' val='7' title='7' >7</a></td>
<td style='text-align:center;'><a class='rate-off' val='8' title='8' >8</a></td>
<td style='text-align:center;'><a class='rate-off' val='9' title='9' >9</a></td>
<td style='text-align:center;'><a class='rate-off' val='10' title='非常好' >10</a></td>
</tr>
var one =$('tr#one a.rate-off.rate-on').text();
var two =$('tr#two a.rate-off.rate-on').text();
var three =$('tr#three a.rate-off.rate-on').text();
console.log(one);
console.log(two);
console.log(three);
< END >
程序员NBA
一个有故事的程序员
或者加我微信1414200300一起讨论java技术,有什么问题群里人也可以帮你一起解决