分类：电脑/网络-互联网
问题：有一行表格，点击按钮后，如何再添加一行呀 
回答：<script> var gzcontent="";functn addTable(){var tableID= l.loop;var oRow= sertRow( ws.length); var oCell= sertCell(oRow.cells.length); nerHTML=gzcontent;}function initContent(){gzcontent= l.tb1.outerHTML;}</script><body onload="initContent()"><table border = 1 id="loop"><tr><td><table id="tb1"> <tr>  <td>username:</td><td><input type="text" value="dinghb"></td>  </tr>  <tr>  <td>password</td><td><input type="password" value="dinghb"></td>  </tr>  <tr>   <td colspan="2" id="tdid0">    <input type="button" value="add table" onclick="addTable()">   </td>  </tr>  </table></td></tr></table></body>