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;
                }
            }
        }
原文地址:https://www.cnblogs.com/kaiwen/p/8243959.html