{ field:'rq',title:'日期',sortable:true, //格式化时间 formatter : function(value){ if (value == null || value == '') { return ''; } var date = new Date(value); var y = date.getFullYear(); var m = date.getMonth() + 1; var d = date.getDate(); return y + '-' +m + '-' + d; } } ,