search

Home  >  Q&A  >  body text

javascript - How does promise work?

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

What does a task queue look like?

I don’t need the results, I just want to know the operating mechanism

黄舟黄舟2744 days ago661

reply all(1)I'll reply

  • 世界只因有你

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

    Event loop mechanism, I think this article is very well written
    http://www.jianshu.com/p/12b9...

    reply
    0
  • Cancelreply