File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -115,15 +115,11 @@ JavaScriptは非同期なので、`setTimeout`と`setInterval`関数を使って
115
115
> できますが、[ メソッド] ( #function.this ) を使用した際に、分かりにくいエラーが起りえるので
116
116
> 使用はお勧めしません。
117
117
118
- ### In Conclusion
118
+ ### 終りに
119
119
120
- ** Never** should a string be used as the parameter of ` setTimeout ` or
121
- ` setInterval ` . It is a clear sign of ** really** bad code, when arguments need
122
- to be supplied to the function that gets called. An * anonymous function* should
123
- be passed that then takes care of the actual call.
120
+ ` setTimeout ` や` setInterval ` のパラメーターに文字列を使用する事は** 絶対** するべきではありません。引数が関数に呼び出される必要がある場合** 本当** に悪いコードの明確なサインになります。実際の呼び出しには* 匿名関数* を渡すべきです。
124
121
125
- Further, the use of ` setInterval ` should be avoided since its scheduler is not
126
- blocked by executing JavaScript.
122
+ その上で、` setInterval ` の使用はそのスケジューラーがJavaScriptの実行をブロックするので避けるべきでしょう。
127
123
128
124
[ 1 ] : http://en.wikipedia.org/wiki/Document_Object_Model " Document Object Model "
129
125
You can’t perform that action at this time.
0 commit comments