Showing
1 changed file
with
5 additions
and
0 deletions
@@ -39,7 +39,12 @@ | @@ -39,7 +39,12 @@ | ||
39 | function stopCount() { | 39 | function stopCount() { |
40 | var endTime = parseInt($('#endTime').val()); | 40 | var endTime = parseInt($('#endTime').val()); |
41 | var startTime = parseInt($('#startTime').val()); | 41 | var startTime = parseInt($('#startTime').val()); |
42 | + alert(endTime); | ||
43 | + alert(startTime); | ||
44 | + alert(endTime - startTime > 60); | ||
42 | var secondVar = parseInt((endTime - startTime) % 60); | 45 | var secondVar = parseInt((endTime - startTime) % 60); |
46 | + alert(secondVar); | ||
47 | + | ||
43 | if (endTime - startTime > 60) { | 48 | if (endTime - startTime > 60) { |
44 | var minuteVar = parseInt((endTime - startTime) / 60); | 49 | var minuteVar = parseInt((endTime - startTime) / 60); |
45 | totalVar = minuteVar + '分' + secondVar + '秒'; | 50 | totalVar = minuteVar + '分' + secondVar + '秒'; |
-
Please register or login to post a comment