摘要: Date.prototype.format = function(format) { var date = { "M+": this.getMonth() + 1, "d+": this.getDate(), "h+": this.getHours(), "m+": this.getMinutes( 阅读全文
posted @ 2016-03-07 15:12 Yanyd 阅读(177) 评论(0) 推荐(0) 编辑
摘要: var dateDiff = function(hisTime,nowTime){ if(!arguments.length) return ''; var arg = arguments, now =arg[1]?arg[1]:new Date().getTime(), diffValue = n 阅读全文
posted @ 2016-03-07 10:39 Yanyd 阅读(1321) 评论(0) 推荐(0) 编辑