s 转小时 转分钟 保留1位

s 转 小时

Math.round((sec / (60*60))*10)/10;

 

s 转 分钟

Math.round((sec / (60))*10)/10;

posted @ 2020-06-16 17:57  耶梦加德  阅读(257)  评论(0编辑  收藏  举报