摘要: 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++) { 阅读全文
posted @ 2011-10-09 15:03 无名草 阅读(1734) 评论(0) 推荐(1) 编辑