摘要:
//得到每周的第一天(周日)function getFirstDateOfWeek(theDate){var firstDateOfWeek;theDate.setDate(theDate.getDate() - theDate.getDay()); // firstDateOfWeek = theDate;return firstDateOfWeek;}//得到每周的最后一天(周六)function getLastDateOfWeek(theDate){var lastDateOfWeek;theDate.setDate(theDate.getDate() + 6 - theDate.get 阅读全文
摘要:
extjs DateField 的值用getValue()方法获取后是一大堆字符串,类似Tue Dec 07 2010 00:00:00 GMT 0800,这玩意存入数据库实在不好办。。。所以要把它格式化一下,方法很简单,用EXT的Ext.util.Format.date()方法示例:var ged 阅读全文