tomorrow - 明天
以字符串形式返回明天日期表示。
使用 new Date() 获取今天的日期,加上 86400000 秒(24小时),使用 Date.toISOString() 将 Date 对象转换为字符串。
const tomorrow = () => new Date(new Date().getTime() + 86400000).toISOString().split('T')[0];
tomorrow(); // 2017-12-27 (if current date is 2017-12-26)
为天地立心,为生民立命,为往圣继绝学,为天下开太平

浙公网安备 33010602011771号