質問編集履歴

1

変数名が予約語だったため。修正。

2019/09/03 07:03

投稿

makosankibu
makosankibu

スコア289

test CHANGED
File without changes
test CHANGED
@@ -14,7 +14,7 @@
14
14
 
15
15
  $(function(){
16
16
 
17
- var switch;
17
+ var hoge;
18
18
 
19
19
  $("body").on('touchstart', function(event){
20
20
 
@@ -24,7 +24,7 @@
24
24
 
25
25
  $("body").on('touchend', function(event){
26
26
 
27
- if(switch){ //noMenuがタッチされてから離されるまでこの処理を止めたい
27
+ if(hoge){ //noMenuがタッチされてから離されるまでこの処理を止めたい
28
28
 
29
29
  //touchendの処理
30
30
 
@@ -34,7 +34,7 @@
34
34
 
35
35
  $(".noMenu").on("touchstart", function(){
36
36
 
37
- switch= false;
37
+ hoge= false;
38
38
 
39
39
  });
40
40
 
@@ -42,7 +42,7 @@
42
42
 
43
43
  $(".noMenu").on("touchend", function(){
44
44
 
45
- switch= true;
45
+ hoge= true;
46
46
 
47
47
  });
48
48