//行合并 function _w_table_rowspan(col){ _w_table_firsttd = ""; _w_table_currenttd = ""; _w_table_SpanNum = 0; _w_table_Obj = $("#sumtable tr"); _w_table_Obj.each(function(i){ if(i>_w_table_Obj.length-2){ return; } if(i==0){ _w_table_firsttd = $(this).children("td:eq("+col+")"); _w_table_SpanNum = 1; }else{ _w_table_currenttd = $(this).children("td:eq("+col+")"); if(_w_table_firsttd.text()==_w_table_currenttd.text()&&_w_table_firsttd.text()!=''){ _w_table_SpanNum++; _w_table_currenttd.hide(); //remove(); _w_table_firsttd.attr("rowSpan",_w_table_SpanNum); }else{ _w_table_firsttd = $(this).children("td:eq("+col+")"); _w_table_SpanNum = 1; } } }); }