1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

settimeoutの引数に関して

Posted at

setTimeoutの使い方で第三引数以降の意味を理解したのでメモ。
以下のような記述があった時

setTimeout(playAudio,500,fileName,divId)
  1. 第一引数は実行される関数。playAudioが実行される関数
  2. 第二引数は指定した時間後に実行する時間。msecで記述する。500msec後にplayAudioを実行する
  3. 第三引数以降。playAudioに渡される引数。fileName,divIdが渡される。

誤っていたら指摘ください。

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?