ext 处理数据库 date

var recordType= new Ext.data.Record.create([
        {name:'createTime',type:'date',dateFormat:'time',mapping:'createTime.time'}
    ]);

 

var sm = new Ext.grid.CheckboxSelectionModel();

 

var columnModel = new Ext.grid.ColumnModel([
        new Ext.grid.RowNumberer(),
        sm,
        {header:'创建时间',width:150,sortable:true,dataIndex:'createTime',renderer:Ext.util.Format.dateRenderer('Y-m-d H:i:s')}
    ]);

 

 

renderer:function(value, cellmeta, record){}

你可能感兴趣的:(ext)