现在的位置: 首页 > 综合 > 正文

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

2013年10月14日 ⁄ 综合 ⁄ 共 231字 ⁄ 字号 评论关闭
{
					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;
						}
					}
				}

抱歉!评论已关闭.