how to wait for setTimeout to be launched/completed , then do something

前端 未结 0 768
陌清茗
陌清茗 2021-02-07 16:51

What\'s the quickest way to wait for a setTimout, then console.log something in javascript?

EXAMPLE CODE:

// log \'hello\' after half a second
setTimeout((         


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