table 删除 某一个 tr
<tr> <td><input type='button' size=5 value='删除' οnclick="deleteCurrentRow(this)" /> </td> </tr> function deleteCurrentRow(obj){ var tr=obj.parentNode.parentNode; var tbody=tr.parentNode; if(tbody.rows.length<=1){ closeSpec(); return ; } tbody.removeChild(tr); }
转载至: https://blog.csdn.net/hf312350968/article/details/84300816
邮箱: 1090055252@qq.com