javascript日期操作
摘要:
javascript获取给定日期N天后的日期:<script language="javascript">function showDate(initDate,num){initDate = initDate.replace('-','/');var dateObj = new Date(initDate);dateObj.setDate(dateObj.getDate()+num);var endDay = dateObj.getDate();var endMonth = dateObj.getMonth() + 1;var e 阅读全文
posted @ 2012-03-03 15:10 沉淀的心 阅读(244) 评论(0) 推荐(0) 编辑