JS代码:/*This function is use to add one row dynamicly* tabObj : Target table* colNum: The number of columns that of a row in table* sorPos: The source of the new row.* targPos: The position where the new row will be added.**/function addRow(tabObj,
6、colNum,sorPos,targPos){ var nTR = tabObj.insertRow(tabObj.rows.length-targPos); // Insert a new row into appointed table on the //appointed position. var TRs =
7、 tabObj.getElementsByTagName('TR'); // Get TRs collection from the appointed table var sorTR = TRs[sorPos]; // Positioned the sorTR var TDs =