摘要: 将字符串形式的日期转换成日期对象var strTime="2011-04-16"; //字符串日期格式var date= new Date(Date.parse(strTime.replace(/-/g,"/")));//转换成Data();var month=date.getMonth()+1; ... 阅读全文
posted @ 2014-08-13 11:02 一生相伴 阅读(2356) 评论(0) 推荐(0)