Appearance
function foo() { setTimeout(foo, 0) } foo();
/** * 1. 主线程调用foo,通知记时线程等xx秒执foo,主线程结束 * 2. 记时线程等xx秒,把foo加入到主进程,重复1 */