js 将秒转化为时分秒

来源:互联网 发布:linux下ant安装和使用 编辑:程序博客网 时间:2024/05/21 11:17
function time_decare(){return [parseInt(timescode / 60 / 60), parseInt(timescode / 60 % 60), parseInt(timescode % 60)].join(":")        .replace(/\b(\d)\b/g, "0$1");}

其中timescode即为秒
0 0
原创粉丝点击