随笔分类 -  Javascript

摘要:例:90秒 可转换为 00:01:30 function formatSeconds(value) { let result = parseInt(value) let h = Math.floor(result / 3600) < 10 ? '0' + Math.floor(result / 36 阅读全文
posted @ 2019-05-29 10:01 jmwei 阅读(879) 评论(0) 推荐(0)
摘要:从数组中随机取值 阅读全文
posted @ 2016-12-27 17:09 jmwei 阅读(1964) 评论(0) 推荐(0)