<div class="codetitle"> <span><a style="CURSOR: pointer" data="51511" class="copybut" id="copybut51511" onclick="doCopy('code51511')"><u>复制代码</u></a></span> 代码如下:</div> <div class="codebody" id="code51511"> <br>$('#mytable tr:last').find('td').addClass('end'); <br>$('#mytable tr').find('td:last').addClass('end'); <br> </div> <br>获取倒数第二行 <br><div class="codetitle"> <span><a style="CURSOR: pointer" data="43225" class="copybut" id="copybut43225" onclick="doCopy('code43225')"><u>复制代码</u></a></span> 代码如下:</div> <div class="codebody" id="code43225"> <br>$("#tbData tr").get($("#tbData tr").length - 2); <br>$("#tbData tr").eq(-2); <br> </div>