JS 日期加多少天,减多少天
日期加天数
function AddDayToDate(Time, days) { var a = new Date(Time) a = a.valueOf() a = a + days * 24 * 60 * 60 * 1000 a = new Date(a) return a; }
日期减天数
function AddDayToDate(Time, days) { var a = new Date(Time) a = a.valueOf() a = a - days * 24 * 60 * 60 * 1000 a = new Date(a) return a; }