2011年12月13日

当月第一天、最后一天、本周第一天、本周最后一天及日期输出格式

摘要: 1 <html> 2 <body> 3 <script language=javascript> 4 Date.prototype.format = function(format) 5 { 6 var o = 7 { 8 "M+" : this.getMonth()+1, //month 9 "d+" : this.getDate(), //day 10 "h+" : this.getHours(), //hour 11 "m+" : this.getMinutes(), // 阅读全文

posted @ 2011-12-13 19:38 nwf 阅读(528) 评论(0) 推荐(0) 编辑

导航