如何在 2 之间创建表格行? 我正在使用下面的代码创建一行。
if (!document.getElementsByTagName) return;
tabBody=document.getElementsByTagName("TBODY").item(0);
row=document.createElement("TR");
cell1 = document.createElement("TD");
textnode1=document.createTextNode('');
cell1.appendChild(textnode1);
row.appendChild(cell1);
tabBody.appendChild(row);
}
实际上我想将它创建为中间一行。目前我的表有 2 行。
最佳答案
关于javascript - 使用 javascript 在两行之间创建一个表行?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6080563/