要在JavaScript中给当前时间戳加上一天,可以使用以下代码:
const currentTimestamp = new Date().getTime();
const oneDayInMilliseconds = 24 * 60 * 60 * 1000;
const nextDayTimestamp = currentTimestamp + oneDayInMilliseconds;
console.log(nextDayTimestamp);
要在JavaScript中给当前时间戳加上一天,可以使用以下代码:
const currentTimestamp = new Date().getTime();
const oneDayInMilliseconds = 24 * 60 * 60 * 1000;
const nextDayTimestamp = currentTimestamp + oneDayInMilliseconds;
console.log(nextDayTimestamp);
上一篇:自定义修改el-table的show-overflow-tooltip样式
下一篇:解决 "Uncaught TypeError: Number.isInteger is not a function" 错误
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M