質問編集履歴
1
reset\.onclick = function\(\)にclearInterval\( counter \);を追加しました。
title
CHANGED
File without changes
|
body
CHANGED
@@ -37,6 +37,7 @@
|
|
37
37
|
time = 180;
|
38
38
|
min.innerHTML = Math.floor( time / 60 );
|
39
39
|
sec.innerHTML = Math.floor( time % 60 );
|
40
|
+
clearInterval( counter );
|
40
41
|
}
|
41
42
|
|
42
43
|
function toggle() {
|