layui表单table渲染完成对某一行进行标记案例

      发布在:前端技术      评论:0 条评论
done: function (res, curr, count) {
var that = this.elem.next();
res.data.forEach(function (item, index) {
if (item.id == "{:cookie('new_comment_id')}") {
console.log(".layui-table-box tbody tr[data-index='" + index + "']")
var tr = that.find(".layui-table-box tbody tr[data-index='" + index + "']");
tr.css("background-color", "#b2f1c3");
}
});

}


相关文章
热门推荐