Call a javascript function after 5 sec of last key press

前端 未结 3 625
-上瘾入骨i
-上瘾入骨i 2020-12-08 01:03

I have a form with an and I want to call a javascript function after 5 seconds of the last key press, and every time a new key is pres

3条回答
  •  醉酒成梦
    2020-12-08 01:32

    Although it doesn't use jQuery, you could also have a look at the debouncing function described here.

    Steve

提交回复
热议问题