回答編集履歴
1
追記
test
CHANGED
@@ -41,3 +41,29 @@
|
|
41
41
|
|
42
42
|
|
43
43
|
```
|
44
|
+
|
45
|
+
|
46
|
+
|
47
|
+
#追記
|
48
|
+
|
49
|
+
これでどうでしょう?
|
50
|
+
|
51
|
+
```javascript
|
52
|
+
|
53
|
+
$(function(){
|
54
|
+
|
55
|
+
var timerID=0;
|
56
|
+
|
57
|
+
$("#switch").on('click',function(){
|
58
|
+
|
59
|
+
$("#menu").toggleClass('hide');
|
60
|
+
|
61
|
+
if(timerID) clearTimeout(timerID);
|
62
|
+
|
63
|
+
if(!$('#mene').hasClass('hide')) timerID=setTimeout(function(){$("#menu").addClass('hide',flg)},5000);
|
64
|
+
|
65
|
+
});
|
66
|
+
|
67
|
+
});
|
68
|
+
|
69
|
+
```
|