js 毫秒格式转换

xiaoxiao2021-02-28  70

var t = new Date();//当前时间 str = Math.floor(t / 86400) + "天" + Math.floor(t % 86400 / 3600) + "时" + Math.floor(t % 86400 % 3600 / 60) + "分" + Math.floor(t % 60) + "秒";
转载请注明原文地址: https://www.6miu.com/read-50877.html

最新回复(0)