JS格式化日期字符串
摘要:1//格式化日期2Date.prototype.format=function(format)3{4varo=5{6"M+":this.getMonth()+1,//month7"d+":this.getDate(),//day8"h+":this.getHours(),//hour9"m+":this.getMinutes(),//minute10"s+":this.getSeconds(),/...
阅读全文
posted @ 2008-02-29 09:51