网站首页
编程语言
数据库
系统相关
其他分享
编程问答
timeDiff
2024-09-19
js 时间搓计算
exportfunctioncompareTimestamp(timestamp){constcurrentTime=newDate().getTime();consttimeDiff=currentTime-timestamp;if(timeDiff<60000){return'1分钟内';}elseif(timeDiff<3600000){returnMath.floor(