2008年2月29日

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 Daniel Pang 阅读(3446) 评论(0) 推荐(0) 编辑

导航