1.EasyUI的rowStyler怎么用?
2.它这判断条件怎么给?譬如我直接选择表格中的某一行
rowStyler:function(index,row){ //设置样式
if (row.value = 2){
return 'background-color:pink;color:blue;font-weight:bold;';
}
},
columns: [[
{
field: 'carId',
title: '司机名称',
width: 70,
align: 'center',
sortable:true //定义可以排序
},
{
field: 'city',
title: '城市名称',
width: 80,
align: 'center'
},
{
field: 'carn',
title: '车辆编号',
width: 80,
align: 'center'
},