如何将string类型的数据如何显示在Ext的datefield中
//返回的String的数据先格式化处理obj.month=obj.reportmonth.substr(0,4)+"年"+obj.reportmonth.substr(4,2)+"月";//然后在DateField中设置 altFormats: 'Y年m月'var monthField = new Ext.form.DateField({name: 'time',fieldLabel: '时间',allowBlank:false,format:'Y年m月',altFormats: 'Y年m月'})?关键是这个:altFormats:?'Y年m月'??