Posted on 2007-10-19 16:28
leekiang 阅读(2028)
评论(3) 编辑 收藏 所属分类:
web开发
var x=document.getElementById('myTable').rows;
var y=x[0].cells;
y[0].innerHTML="NEW CONTENT";
var x=document.getElementById('myTable').insertRow(2);
var y=x.insertCell(0);
var z=x.insertCell(1);
y.innerHTML="NEW CELL1";
z.innerHTML="NEW CELL2";
见www.java2s.com