javascript 秒轉爲分

var t = 182;
console.log( Math.floor(t/60)+":"+(t%60/100).toFixed(2).slice(-2) );
相關文章
相關標籤/搜索