【发布时间】:2012-01-13 07:40:16
【问题描述】:
stackoverflow 论坛成员我需要你的帮助。
我正在以 json 格式获取 startDate 的服务器响应
"startDate":1328466599000
我想将它显示到我的 ExtJs 列。但我无法显示它。
我在其中显示 StartDate 的列是
[Ext.Date.format(values.StartDate, "c")]
我的 TaskModel 是
Ext.define("TaskModel", {
extend : "Gnt.model.Task",
// Some custom field definitions
fields : [
{ name: 'Id', type: 'int', useNull : true, mapping: 'id'},
{ name: 'StartDate', type: 'date', mapping: 'startDate'},
{ name: 'EndDate', type: 'date', mapping: 'endDate', dateFormat: 'MS'},
{ name: 'Priority', defaultValue : 1, mapping: 'priority', dateFormat: 'MS' },
{ name: 'Duration', mapping: 'duration'},
{ name: 'PercentDone', mapping: 'percentDone'},
{ name: 'DurationUnit', mapping: 'durationUnit'},
{ name: 'parentId', mapping: 'parentId', type: 'int'},
{ name: 'Name', mapping: 'taskName'},
{ name: 'index', mapping: 'taskindex'},
{ name: 'depth', mapping: 'depth'},
]
});
我无法查看我收到的作为对我的专栏的回复的 startDate。
有没有人知道是什么导致了这个错误?如果有人对此问题有解决方案,请帮助我。
【问题讨论】:
标签: java json hibernate extjs-mvc