done: function (res, curr, count) { //返回数据执行回调函数
$("#number").html(count)
layer.close(loading); //返回数据关闭loading
var that = this.elem.next();
res.data.forEach(function (item, index) {
if (index % 2 == 0) {
} else {
var tr = that.find(".layui-table-box tbody tr[data-index='" + index + "']").css("background-color", "#E7FAFC")
}
})
}
layui表格设置隔行变色
最新推荐文章于 2023-05-17 16:00:46 发布