回答編集履歴

1

修正

2019/01/19 16:29

投稿

退会済みユーザー
test CHANGED
@@ -7,12 +7,6 @@
7
7
 
8
8
 
9
9
  $(".plus-btn").click(function() {
10
-
11
- if (counter == 0) {
12
-
13
- return;
14
-
15
- }
16
10
 
17
11
  counter++;
18
12
 
@@ -24,7 +18,7 @@
24
18
 
25
19
  $(".minus-btn").click(function() {
26
20
 
27
- if (counter == 0) {
21
+ if (counter <= 0) {
28
22
 
29
23
  return;
30
24