bootstrap table根据条件改变行字体颜色
onLoadSuccess: function() {
},
rowStyle: function(row, index) {
if( row.flag == 1){
return {css:{'color':'red'}};
}
return '';
},
//改变背景颜色
rowStyle: function(row, index) {
if( row.flag == 1){
return {css:{'color':'red','background-color':'#ed5565'}};
}
return '';
},