js工作备注

{
            field : 'state',
            title : '事件状态',
            align: 'center',
            width : 120,
            formatter : function(value, row, index){
                value = eventStateMapJson[value];
                return value;
            }
        },{
            field : 'descript',
            title : '事件描述',
            align: 'center',
            width : 230,
            formatter : function(value, row, index){
                if(value.length  > 20){
                    return  value.substring(0, 20)+"...";
                }else {
                    return value;
                }
            }
        },{
            field : 'address',
            title : '地址描述',
            align: 'center',
            width : 250,
            formatter : function(value, row, index){
                if(value.length  > 20){
                    return  value.substring(0, 20)+"...";
                }else {
                    return value;
                }
            }
        }

 

posted @ 2018-01-08 17:58  开文博客园  阅读(492)  评论(0编辑  收藏  举报