function _w_table_rowspan(_w_table_id,_w_table_colnum){
    _w_table_firsttd = "";     
    _w_table_currenttd = "";     
    _w_table_SpanNum = 0;     
    _w_table_Obj = $(_w_table_id + " tr td:nth-child(" + _w_table_colnum + ")");     
    _w_table_Obj.each(function(i){     
        if(i==0){     
            _w_table_firsttd = $(this);     
            _w_table_SpanNum = 1;     
        }else{     
            _w_table_currenttd = $(this);  
            if(_w_table_firsttd.parent().attr("invoiceNumber") ==_w_table_currenttd.parent().attr("invoiceNumber")){     
                _w_table_SpanNum++;
                $(_w_table_currenttd).attr("disable", "true");
                _w_table_currenttd.hide(); //remove();     
                _w_table_firsttd.attr("rowSpan",_w_table_SpanNum);     
            }else{     
                _w_table_firsttd = $(this);     
                _w_table_SpanNum = 1;     
            }     
        }
    });
}以上就是JS前端合并TABLE相同列的单元格的方法的详细内容,更多请关注php中文网其它相关文章!
                        
                        每个人都需要一台速度更快、更稳定的 PC。随着时间的推移,垃圾文件、旧注册表数据和不必要的后台进程会占用资源并降低性能。幸运的是,许多工具可以让 Windows 保持平稳运行。
                
                                
                                
                                
                                
                                
                                Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号