摘要: var weekDay = ["星期天", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六"]; var dateStr = "2008-08-08 08:08:08"; var myDate = new Date(Date.parse(dateStr.replace(/-/g, "/"))); alert(weekDay[myDate.getDay()]); 阅读全文
posted @ 2011-09-29 17:43 晓风拂月 阅读(660) 评论(0) 推荐(0) 编辑