done: function (res, curr, count) { var onwanceTotal=0; layui.each(res.data, function (index, d) { onwanceTotal += Number(d.Description) }) this.elem.next().find('.layui-table-total td[data-field="Description"] .layui-table-cell').text(data.totalsum); }
合计 数据从后台直接传过来