摘要:
window.onload = function () { var tab = document.getElementById("table1"); //要合并的tableID var maxCol = 3, val, count, start; //maxCol:合并单元格作用到多少列 if (tab != null) { for (var col = maxCol - 1; col >= 0; col--) { count = 1; val = ""; for (var i = 0; i < tab.rows.length; i++) { 阅读全文