alert(new Date());//正常,能显示未格式化前的时间
alert(new Date().format('Y-m-d G:i:s A'));//报错(new Date()).format is not a function
Ext4才会出现这问题,请问有人遇到过并知道怎么解决吗?
alert(new Date());//正常,能显示未格式化前的时间
alert(new Date().format('Y-m-d G:i:s A'));//报错(new Date()).format is not a function
Ext4才会出现这问题,请问有人遇到过并知道怎么解决吗?
新规则
EXT不再重写javascript的Date函数
所以现在要这吗用
var dt = new Date('1/10/2007 03:05:01 PM GMT-0600');
console.log(Ext.Date.format(dt, 'Y-m-d'));