标签:ntb 如何 delete body get name div nbsp element
如下这个table的主体tbody以及js代码:
<tbody id="mainbody"> <tr id="delCell"> <td>name</td> <td>address</td> </tr>
</tbody>
<script type="text/javascript"> function deleteCell(bodyname,cellname){ var mailbody = document.getElementById(bodyname); var cell = document.getElementById(cellname); if(cell != undefined){ mainbody.removeChild(cell); } } </script>
标签:ntb 如何 delete body get name div nbsp element
原文地址:http://www.cnblogs.com/zouchengli/p/7191981.html