/**
* 动态重排行号
* tableid 为表格ID,num 为从第几行开始
*/
function(tableid,num){
var tab = document.getElementById(tableid);var rowlength = tab.rows.length;
//console.log(rowlength2);
//表示开始数
var temp = 1;
for(var i=num;i<rowlength;i++){
tab.rows[i].cells[0].innerHTML = temp;
temp ++;
}
//循环结束。将temp归为1
temp = 1;
}