JS中Date与字符串的转换string to date/** * n 1 means tomorrow n -1 means yestoday */function rol
JS中Date与字符串的转换
string to date
/** * n = 1 means tomorrow n = -1 means yestoday */function rollDay(d, n) { return new Date(d - 0 + n * 86400000);}
JS中Date与字符串的转换
string to date
/** * n = 1 means tomorrow n = -1 means yestoday */function rollDay(d, n) { return new Date(d - 0 + n * 86400000);}