# 遅延実行
setTimeout ->
# 処理
, 1000
# タイマー実行
timer = setInterval ->
if condition
# 処理
clearInterval(timer)
, 1000
More than 5 years have passed since last update.
coffeescriptでタイマー設定/解除 setTimeout,setInterval,clearInterval
Last updated at Posted at 2014-01-15
Register as a new user and use Qiita more conveniently
- You get articles that match your needs
- You can efficiently read back useful information
- You can use dark theme
List of users who liked
77