File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -65,19 +65,16 @@ JavaScriptは非同期なので、`setTimeout`と`setInterval`関数を使って
65
65
var id = setTimeout(foo, 1000);
66
66
clearTimeout(id);
67
67
68
- ### Clearing all timeouts
68
+ ### 全てのタイムアウトをクリアする
69
69
70
- As there is no built-in method for clearing all timeouts and/or intervals,
71
- it is necessary to use brute force in order to achieve this functionality.
70
+ 全てのタイムアウトや、インターバルをクリアする組み込みメソッドが無い為、機能的にクリアする為には暴力的な手段を使う必要があります。
72
71
73
- // clear "all" timeouts
72
+ // "全ての"タイムアウトをクリアする
74
73
for(var i = 1; i < 1000; i++) {
75
74
clearTimeout(i);
76
75
}
77
76
78
- There might still be timeouts that are unaffected by this arbitrary number;
79
- therefore, is is instead recommended to keep track of all the timeout IDs, so
80
- they can be cleared specifically.
77
+ ここまでもまだ、任意の数字を与えられた為に影響を受けないタイムアウトがあるかもしれません。しかし、全てのタイムアウトのIDを追跡していく事は推奨されないので、それらは個別にクリアされます。
81
78
82
79
### Hidden use of ` eval `
83
80
You can’t perform that action at this time.
0 commit comments