Promise 其实很简单

A Promise is an object representing the eventual completion or failure of an asynchronous operation. Essentially, a promise is a returned object you attach callbacks to, instead of passing callbacks into a function. Promise 是一个表示异步操作最终完成或失败的对象,可以直接向其添加回调函数,而不...