EasyUI的rowStyler怎么用?

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'
        },
阅读 3.3k
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题