在某页面中有一张10行3列的表格,表格ID为PTable,下面的选项中( )能够删除最后一行。
A.
document.getElementById("PTable").deleteRow(10);
B.
var delrow=document.getElementById("PTable").lastChild;delrow parentNode.removeChild(delrow);
C.
var index=document.getElementById("PTable").rows.length; document.getElementById("PTable").deleteRow(index);
D.
var index=document.getElementById("PTable").rows.length-1; document.getElementById("PTable").deleteRow(index);