tableid.rows[i].cells[j],某个单元格对象动态创建表格
http://msdn.microsoft.com/workshop/author/tables/buildtables.asp
如果你英语好,看看就能懂了table要有id
var onerow=tableid.insertRow(tableid.rows.length);
var onecell=onerow.insertCell();
var twocell=onerow.insertCell();
var threecell=onerow.insertCell();
....
onecell.innerText="...";//文字
twocell.innerHTML="...";//HTML元素,也可是文字
threecell.appendChild(object);//给单元格加对象
http://msdn.microsoft.com/workshop/author/tables/buildtables.asp
如果你英语好,看看就能懂了table要有id
var onerow=tableid.insertRow(tableid.rows.length);
var onecell=onerow.insertCell();
var twocell=onerow.insertCell();
var threecell=onerow.insertCell();
....
onecell.innerText="...";//文字
twocell.innerHTML="...";//HTML元素,也可是文字
threecell.appendChild(object);//给单元格加对象
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货