标题不是很清楚,但为了详细说明,我需要向API端点发出HTTP请求,到目前为止,我使用的函数如下所示: function getPostsFromAPI(argOne, argTwo) { // do stuff with userPosts }).catch(handleError) "next_of
我对Promise中的resolve感到困惑。resolve是在innerResolve之前被调用的,但是为什么在chrome控制台中“inner then execute”被记录在“Promise then execute”之前。我想可能是这样的:
当promise的状态为PENDING时,调用resolve只是将状态设置为queued,当调用then方法时,作