getUTCMinutes() 方法可根据世界时 (UTC) 返回时间的分钟字段。
function timeFormat(ms){
if (!ms) return ;
var date = new Date(ms),
h = date.getUTCHours(),
m = date.getUTCMinutes(),
s = date.getUTCSeconds(),
timeStr = ''; if (h) timeStr += h +'小时';
timeStr += m +'分' + s + '秒';
return timeStr;
}
timeFormat(毫秒数);