当第二个实现代码时,js将被替换。
复制代码代码如下所示:功能formatseconds(值){
VaR的时间= parseInt(价值); / /
无功thetime1 = 0; / /分
无功thetime2 = 0; / /小时
警报(时间);
如果(时间> 60){
thetime1 = parseInt(时间 / 60);
时间= parseInt(时间为60);
/ /警报(thetime1 + +时间);
如果(thetime1 > 60){
thetime2 = parseInt(thetime1 / 60);
thetime1 = parseInt(thetime1 % 60);
}
}
VaR结果= + parseInt(时间)+二;
如果(thetime1 > 0){
结果:+ parseInt(thetime1)+子+结果;
}
如果(thetime2 > 0){
结果:+ parseInt(thetime2)+小时+结果;
}
返回结果;
}