exports.convertDuration = (time) => { // 计算分钟 02 020 const minutes = "0" + Math.floor(time/60) // 计算秒数 02 020 const seconds = "0" + Math.floor(time - minutes * 60 )
return minutes.substr(-2) + ':' + seconds.substr(-2)
} const { $ } = require('./helper') const musicList = $('musicList')