刪除函數(shù)中table.removeChild(tr)為什么不能刪除原有的兩行
在刪除函數(shù)中tr.parentNode.removeChild(tr)等同于table.removeChild(tr),但后者只能刪除添加進(jìn)來的行,并不能刪除原有的兩行,為什么
在刪除函數(shù)中tr.parentNode.removeChild(tr)等同于table.removeChild(tr),但后者只能刪除添加進(jìn)來的行,并不能刪除原有的兩行,為什么
2015-07-28
舉報(bào)
2015-11-17
Because the table has only got 2 rows by default