jQuery setTimeout

前端 未结 6 2373
刺人心
刺人心 2021-02-15 11:32

I\'d like to add a timeout to this tooltip code so it only displays if the mouse hovers over it after a while rather than immediately... I tried adding the setTimeout()

6条回答
  •  死守一世寂寞
    2021-02-15 12:27

    This question is old, but I thought I answer it for others. The main reason the timeout was not working was the case of "setTimeOut" . You cant camel hump the Out part. Its "setTimeout".

提交回复
热议问题