Extjs grid正确显示long型时间戳

Ext.create('Ext.grid.Panel', {
autoScroll : true,
store : store,
columns : gridColumns

});

gridColumns中每一列上都添加


{
renderer : function(value) {
if (value == null || value == 0) {
return 'null'
} else {
return Ext.util.Format.date(new Date(parseInt(value)),fmt);
}
}

你可能感兴趣的:(Extjs grid正确显示long型时间戳)