毫秒级时间戳

Date.now();

秒级时间戳

Math.floor(Date.now() / 1000);