摘要: function formatDate(date) { var date = new Date(date); var YY = date.getFullYear() + '-'; var MM = (date.getMonth() + 1 < 10 ? '0' + (date.getMonth() 阅读全文
posted @ 2024-02-11 17:54 85541585 阅读(16) 评论(0) 推荐(0) 编辑
摘要: Date.prototype.Format = function (fmt) { //author: meizz var o = { "M+": this.getMonth() + 1, //月份 "d+": this.getDate(), //日 "H+": this.getHours(), // 阅读全文
posted @ 2024-02-11 17:49 85541585 阅读(3) 评论(0) 推荐(0) 编辑