function in setInterval() executes without delay

前端 未结 4 676
广开言路
广开言路 2020-12-02 00:49

I am in the process of making a jquery application to hide an image after a specified interval of time by using setInterval(). The problem is that the hide image function ex

4条回答
  •  佛祖请我去吃肉
    2020-12-02 01:42

    You have setInterval(change(), 99999999); and it should be setInterval(change, 99999999);. See the documentation of setInterval/setTimeout why. :)

    Common mistake, happens to me all the time. :)

提交回复
热议问题