<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"). ($("#tbData tr").length - 2); <br>$("#tbData tr").eq(-2); <br> </div>