javascript
DBwin90
专注互联网开发
展开
-
javascript扩展date对象格式化日期时间输出
Date.prototype.format = function (format) { var o = { 'Y+': this.getFullYear(), 'm+': this.getMonth() + 1, 'd+': this.getDate(), 'H+': this.getHours(), 'i+': this.getMinute转载 2014-12-03 16:57:47 · 577 阅读 · 0 评论 -
javascript扩展date对象格式化日期时间输出(二)
Date.prototype.format=function(format){ //大写字母代表带前导0 var o={ 'Y':this.getFullYear(), 'm':this.getMonth()+1, 'd':this.getDate(), 'h':this.getHours(), 'i':this.getMinutes(),原创 2014-12-03 17:11:04 · 517 阅读 · 0 评论