createElement
removeNodehttp://msdn.microsoft.com/workshop/author/dhtml/reference/methods.asp

解决方案 »

  1.   

    增加行可以用
    <script language=javascript>
    function add()
    {
      newRow=tab.insertRow()
      newCell=newRow.insertCell()
      newCell.innerHTML="<input  style='width:100%' type=text>"
    }
    </script>
    删除可用
    <script language=javascript>
    function del()
    {
      tab.deleteRow(指定你要删除哪一行)--->指定的行是从0开始的到tab.rows.length结束
    }
    </script>
    tab代表table标签的id
    你试试吧,可以的,这只是自动增加了表格,还可以利用这种方法增加别的对象