2011-04-07 25 views

回答

2

這應該工作:

new Ext.form.DisplayField({ 
    html: new Date().format('Y-m-d') 
}); 
+0

感謝wombleton,這工作! :) – Rashmi 2011-04-07 12:15:52

+0

在我的ui.js文件中,我寫到:'{ xtype:'displayfield', value:new Date()。format('m/d/Y'), id:'cur_date' } – Rashmi 2011-04-08 04:42:47