//获取day天后的日期:格式为2010-1-1
Date.prototype.calculateDate = function(day) {
this.setDate(this.getDate() + day); //计算新日期
return this.getFullYear() + '-' + (this.getMonth() + 1) + '-' + this.getDate();
}
//获取day天后的日期:格式为2010-1-1
Date.prototype.calculateDate = function(day) {
this.setDate(this.getDate() + day); //计算新日期
return this.getFullYear() + '-' + (this.getMonth() + 1) + '-' + this.getDate();
}