LoginSignup
0

More than 5 years have passed since last update.

jQuery TimersのeveryTime()でsubmit()する時は事前にstopTime()する

Posted at

jQuery Timers による タイマー制御
http://s-ej.com/sample/jqp/jqp0004/

everyTime()を使って一定時間間隔で監視し、条件が満たされたらformをsubmit()する処理を書いていたがsubmit()する前にstopTime()しておかないとsubmit()が完了する前に次のeveryTime()が実行されて無限ループする場合がある。

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
0