当前位置: 代码迷 >> JavaScript >> 小弟我这段手动添加表格的代码在ff下不能用哪位高手帮帮忙
  详细解决方案

小弟我这段手动添加表格的代码在ff下不能用哪位高手帮帮忙

热度:256   发布时间:2012-02-09 18:22:27.0
我这段手动添加表格的代码在ff下不能用谁帮帮忙啊
newRow   =   mt.insertRow();  
cell1   =   newRow.insertCell();
cell2   =   newRow.insertCell();
cell1.innerHTML   =   title;

ff不能用insertRow   insertCell
怎么办
用appendChild?

------解决方案--------------------
FF 可以用 insertRow() 和 insertCell(),但是要带参数。比如:
newRow = mt.insertRow(0);
cell1 = newRow.insertCell(0);
cell2 = newRow.insertCell(1);
cell1.innerHTML = title;
------解决方案--------------------
我这里动态增加很快啊!
  相关解决方案