会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
occc
博客园
首页
新随笔
联系
订阅
管理
2021年11月25日
计算两个时间的时间差
摘要: 原理: 时间戳为 1970-01-01 08:00:00 距现在时间的毫秒数, 因此可以将两个时间戳相减获取两个时间的毫秒数,再将毫秒数转换成所需要的时间 const TimeDifference = (stime,etime) => { // let d1 = new Date(faultDate
阅读全文
posted @ 2021-11-25 17:36 occc
阅读(715)
评论(0)
推荐(0)
编辑