搜索

首页  >  问答  >  正文

javascript - promise 的运行机制?

p.then( function(){
    p.then( function(){
        console.log( "C" );
    } );
    console.log( "A" );
} );
p.then( function(){
    console.log( "B" );
} );

任务队列是什么样子的?

我不需要结果,只想知道运行机制

黄舟黄舟2822 天前735

全部回复(1)我来回复

  • 世界只因有你

    世界只因有你2017-05-19 10:32:35

    事件循环机制,我觉得这篇文章写的挺好的
    http://www.jianshu.com/p/12b9...

    回复
    0
  • 取消回复