标签:amp color 转换 time lse min code style wait
formatTime(msTime) { let time = msTime / 1000; let minute = (Math.floor(time / 60) % 60) > 9 ? (Math.floor(time / 60) % 60) : ‘0‘ + (Math.floor(time / 60) % 60); let second = (Math.floor(time) % 60) > 9 ? (Math.floor(time) % 60) : ‘0‘ + (Math.floor(time) % 60); let waitTime = ‘‘; if ((msTime % 1000 > 9) && (msTime % 1000 < 99)) { waitTime = ‘0‘ + msTime % 1000 } else if (msTime % 1000 < 10) { waitTime = ‘00‘ + msTime % 1000 } else { waitTime = msTime % 1000 } return `${minute}:${second}.${waitTime}` }
this.formatTime(1000)
标签:amp color 转换 time lse min code style wait
原文地址:https://www.cnblogs.com/shark1100913/p/14655607.html