{field: 'content', title:'内容', operate: false,
formatter : function(value, row, index, field){
return "<span style='display: block;overflow: hidden;text-overflow: ellipsis;white-space: nowrap;' title='" + row.content + "'>" + value + "</span>";
},
cellStyle : function(value, row, index, field){
return {
css: {
"white-space": "nowrap",
"text-overflow": "ellipsis",
"overflow": "hidden",
"max-width":"150px"
}
};
}
},
{field: 'content', title: __('Content'), operate: 'LIKE',
// 加入代码
formatter: function(value){return value.toString().substr(0, 20)}
// 加入代码--end
}
网友评论