tableObject.deleteRow(index)
参考教程:http://www.w3school.com.cn/htmldom/met_table_deleterow.asp
<table width="100%" id="tab"><tr id="tr_1">
<td>行1</td>
<td><a href="#this" onclick="remove_tr(1)">点击移除</a></td>
</tr>
<tr id="tr_2">
<td>行2</td>
<td><a href="#this" onclick="remove_tr(2)">点击移除</a></td>
</tr>
<tr id="tr_3">
<td>行3</td>
<td><a href="#this" onclick="remove_tr(3)">点击移除</a></td>
</tr>
<tr id="tr_4">
<td>行4</td>
<td><a href="#this" onclick="remove_tr(4)">点击移除</a></td>
</tr>
</table>
<script type="text/javascript">
<!--
function remove_tr(index){
var tr = document.getElementById('tr_'+index)
tr.parentNode.removeChild(tr)
}
//-->
</script>