Passing a pointer/reference to a variable as parameter

后端 未结 5 1796
情话喂你
情话喂你 2021-01-24 17:40

I know this question has been asked multiple times (yes, I did some research) but I can\'t see to find a solution that fits my needs.

What I have done so far:

5条回答
  •  星月不相逢
    2021-01-24 18:33

    why don't you use the setInterval function, it will do exactly what you want.

    Example:

    setInterval(function() { 
        // logic to be implemented
    }, delayInMilliseconds)
    

提交回复
热议问题