Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我使用 jquery tablesorter 类,我只想在 mouseOver 事件上将类添加到第二个 td:
<tr> <td>1</td> <td>2</td> </tr>
$('#table').mouseover(function() { $("#table td:nth-child(2)").addClass("tablesorter"); }