function hbTable(col, text, i) {
$(".gridtable tbody tr").each(
function(index, element) {
var typeText = $(this).children(":eq(" + col + ")").text();
if (text != typeText) {
text = typeText;
i = index;
} else {
var rs = $(".gridtable tbody tr:eq(" + i + ")")
.children(":eq(" + col + ")");
if ($(rs).attr("rowspan") == undefined) {
$(rs).attr("rowspan", "2");
} else {
$(rs).attr("rowspan",
$(rs).attr("rowspan") * 1 + 1);
}
$(this).children(":eq(" + col + ")").hide();
}
});
}
转载于:https://my.oschina.net/hhdys412/blog/220665