摘要: 获取当前时间 let now = new Date(); 获取三天前时间 let threeNow = new Date(now.getTime() - 24*60*60*1000*3); 时间格式化 let nowStr = now.format("yyyy-MM-dd hh:mm:ss"); l 阅读全文
posted @ 2020-03-24 11:31 无人问及 阅读(199) 评论(0) 推荐(0) 编辑
摘要: Date.prototype.format = function (fmt) { if (Number.isNaN(this.getMonth()) || Number.isNaN(this.getDate()) || Number.isNaN(this.getHours())) return '' 阅读全文
posted @ 2020-03-24 11:24 无人问及 阅读(109) 评论(0) 推荐(0) 编辑