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");
}
});
}
相关文章