标签:cti auto n+1 计算 ast 合并 delete var cell
function autoRowSpan(tb,row,col){
var lastValue="";
var value="";
var pos=1;
for(var i=row;i<tb.rows.length-1;i++){
value = tb.rows[i].cells[col].innerText;
if(lastValue == value){
tb.rows[i].deleteCell(col);
tb.rows[i-pos].cells[col].rowSpan = tb.rows[i-pos].cells[col].rowSpan+1;
pos++;
}else{
lastValue = value;
pos=1;
}
}
}
标签:cti auto n+1 计算 ast 合并 delete var cell
原文地址:http://www.cnblogs.com/zzf123/p/6186252.html