在table初始化时,添加属性
"createdRow": function (row, data, index) {
if (data.id%2 == 0) {
$(row).addClass("highlight")
}
}
注意:id是该行的主键