秒数转换成00:00:00格式
function toTwo(num){ function changInt(num){ return (num < 10) ? ‘0‘+num : num; } return changInt(parseInt(num/3600))+":"+changInt(parseInt(num/60))+":"+ changInt(Math.round(num%60)); }
标签:blog 时间格式 class turn 格式 int cti nbsp fun
秒数转换成00:00:00格式
function toTwo(num){ function changInt(num){ return (num < 10) ? ‘0‘+num : num; } return changInt(parseInt(num/3600))+":"+changInt(parseInt(num/60))+":"+ changInt(Math.round(num%60)); }
标签:blog 时间格式 class turn 格式 int cti nbsp fun
原文地址:http://www.cnblogs.com/sure2016/p/8047225.html