extjs dateFormat

来源:互联网 发布:淘宝卖家加购量怎么看 编辑:程序博客网 时间:2024/05/28 22:10

应用场景:


// create reader that reads the Topic recordsreader: new Ext.data.JsonReader({root: 'topics',totalProperty: 'totalCount',id: 'threadid',fields: ['title', 'forumtitle', 'forumid', 'author',{name: 'replycount', type: 'int'},{name: 'lastpost', mapping: 'lastpost', type: 'date', dateFormat: 'timestamp'},'lastposter', 'excerpt']})