colModel : [
{
label : '日期',
label : '日期',
name : 'recordInfo.createdAt',
index : 'recordInfo.createdAt',
width : 60,
formatter : function(value, options, row) {
return jsonDateTimeFormatter(value);
}
/* name : 'createdAt',
index : 'createdAt',
width : 60,
sortable : false,
width : 60,
formatter : function (value, options, row) {
return jsonDateTimeFormatter (row.recordInfo.createdAt, 2);
} */
/* name : 'recordInfo.createdAt',
index : 'recordInfo.createdAt',
width : 100,
formatter:function(value,options,row)
{
return jsonDateTimeFormatter(value,2);
} */
},
第一种显示是
2017-08-28。后两种显示是带具体时间的2017-08-28 14:52:30