回答編集履歴

1

調整

2021/10/07 00:59

投稿

yambejp
yambejp

スコア114885

test CHANGED
@@ -14,13 +14,13 @@
14
14
 
15
15
  const t3=t0+t1-t2
16
16
 
17
- const h=(parseInt(t3/60/1000)).toString().padStart(2,'0');
17
+ const m=(parseInt(t3/60/1000)).toString().padStart(2,'0');
18
18
 
19
- const m=(parseInt(t3/1000)%60).toString().padStart(2,'0');
19
+ const s=(parseInt(t3/1000)%60).toString().padStart(2,'0');
20
20
 
21
21
  const ms=(parseInt(t3/10)%100).toString().padStart(2,'0');
22
22
 
23
- timer.textContent=`${h}:${m}.${ms}`;
23
+ timer.textContent=`${m}:${s}.${ms}`;
24
24
 
25
25
  },10);
26
26