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

前端 未结 0 490
一向
一向 2021-02-07 17:03

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((         


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