JS function that will wait the one boolean to be true

后端 未结 0 1495
轮回少年
轮回少年 2020-12-06 02:16

I am using Vue and js.

When the game starts, it calls a function that changes the flag to be true. But I want the function to wait until the flag becomes false.

<
相关标签:
回答
  • 消灭零回复
提交回复
热议问题