代码
//复制行
function copyRow(obj) {
var proTable = document.all.productTab;
var curRowsindex = obj.parentElement.parentElement.rowIndex;
var curRow = proTable.rows[curRowsindex];
var rowHtml = curRow.cloneNode(true);//复制一行
curRow.parentNode.insertBefore(rowHtml); //curRow(行)
}
function copyRow(obj) {
var proTable = document.all.productTab;
var curRowsindex = obj.parentElement.parentElement.rowIndex;
var curRow = proTable.rows[curRowsindex];
var rowHtml = curRow.cloneNode(true);//复制一行
curRow.parentNode.insertBefore(rowHtml); //curRow(行)
}