// 添加秒数 Date.prototype.addSecond = function (count) { var time = this.getTime(); time += count * 1000; return new Date(time); } // 添加分钟 Date.prototype.addMinute = function (count) { return this.addSecond(count * 60); } // 添加小时 Date.prototype.addHour = function (count) { return this.addMinute(count * 60); } // 添加天数 Date.prototype.addDay = function (count) { return this.addHour(count * 24); } // 添加月份 Date.prototype.addMonth = f...
阅读正文