用fiexed:left会错位,需要在done里添上(解决fixed固定,而导致的th高度不一致):
, done: function (res, curr, count) {
// console.log(res)
//解决操作栏因为内容过多换行问题
$(".layui-table-main tr").each(function (index, val) {
$($(".layui-table-fixed-l .layui-table-body tbody tr")[index]).height($(val).height());
$($(".layui-table-fixed-r .layui-table-body tbody tr")[index]).height($(val).height());
});
}