How can I make a program wait for a variable change in javascript?

前端 未结 10 1790
耶瑟儿~
耶瑟儿~ 2020-12-01 03:23

I want to force a JavaScript program to wait in some particular points of its execution until a variable has changed. Is there a way to do it? I have already found an extens

10条回答
  •  鱼传尺愫
    2020-12-01 04:08

    Alternatively, you can make a function that executes tasks based on the value of its "Static" variables, example below:

    
    
    
    Time

提交回复
热议问题