<tr>
<td class="right3"><%=vo.getGoods_id()%></td>
<td class="right3"><%=vo.getGoods_name()%></td>
<td class="right3"><%=vo.getGoods_price()%></td>
<td class="right3"><%=vo.getGoods_number()%></td>
<td class="right4"><table width="90%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="16"><img src="images/edt.gif" width="16" height="16" /></td>
<td align="left" class="update">修改</td>
<td width="16"><img src="images/del.gif" width="16" height="16" /></td>
<td align="left" class="delete"> 删除 </td>
</tr>
</table></td>
</tr>Ajax
<td class="right3"><%=vo.getGoods_id()%></td>
<td class="right3"><%=vo.getGoods_name()%></td>
<td class="right3"><%=vo.getGoods_price()%></td>
<td class="right3"><%=vo.getGoods_number()%></td>
<td class="right4"><table width="90%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="16"><img src="images/edt.gif" width="16" height="16" /></td>
<td align="left" class="update">修改</td>
<td width="16"><img src="images/del.gif" width="16" height="16" /></td>
<td align="left" class="delete"> 删除 </td>
</tr>
</table></td>
</tr>Ajax
function deleteRow(r)
{
var i = r.parentNode.parentNode.rowIndex;
document.getElementById("tb").deleteRow(i);
}
删除选中行deleteRow(this)
function deletetable(){
var tb =document.getElementById('tb');
tb.deleteRow(tb.rows.length-2);
}删除最下面的那行 你可以自己控制tb.rows.length-2