extjs new Ext.form.DateField() 在表格中的显示或者格式取值

来源:互联网 发布:自然知彼孕妇可以用吗 编辑:程序博客网 时间:2024/06/06 01:29
{header : "开始时间",dataIndex : 'start_date',css : 'background: #AAC2EA;',width : 125,sortable : true,editor : new Ext.form.DateField(),renderer : function(value) {if (value instanceof Date) {return new Date(value).format("Y-m-d H:i:s");} else {return value;}}}