Layui多行表头导致多出空白内容处理方法

在done函数内加上以下代码即可:                   

$(".layui-table-body").find("td").each(function (index, element) {
                        if ($(this).attr("data-field") >= 0) {
                            $(this).css("display", "none");
                        }
                    });

posted @ 2020-08-08 09:06  棂信  阅读(1537)  评论(0)    收藏  举报