日期加天数
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; }