导航

Ext中EditorGrid中datefield输入问题

Posted on 2013-06-13 11:32  小强有毒  阅读(209)  评论(0)    收藏  举报
Date.prototype.toString=function(){
  return this.format("Y-m-d");
};

因为EXT调用Date.toString()返回值的问题,导致在EditorGrid中,当选择好时间后,表格中会出现异样的时间格式.重写Date.toString()方法就OK