- 博客(1)
- 收藏
- 关注
原创 js毫秒数换算时长(days-hours-minutes)
在这里插入代码片@TOC在这里插入代码片 getDuration(duration) { if (!duration) { return 0; } const days = Math.floor(duration / (1000 * 60 * 60 * 24)); const hours = Math.floor((duration % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60)); const minutes = Math.floor((duration % (10
2021-09-22 15:32:48
621
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人