在我通过Firebase验证了密码重置代码之后,我放置了一个setTimeout()函数来等待页面加载5秒钟。如果没有它,即使我在脚本的顶部有一个等待页面加载的函数,我也会得到一个错误,说它找不到'userEmail‘。我放置了几个控制台日志,它在"started the wait“处停止,也就是se
我知道下面的代码: // simulate a time consuming function console.logsupposed to come out after `do_a` but it comes out before `do_a`首先,我很想知道为什么-- javascript是如何决定“继续前进