promise
promise的链式调用
const myPromise =(new Promise(myExecutorFunc)).then(handleFulfilledA,handleRejectedA).then(handleFulfilledB,handleRejectedB).then(handleFulfilledC,handleRejectedC);// 或者,这样可能会更好...const myPromise =(new Promise(myExecutorFunc)).then(handleFulfilledA).then(handleFulfilledB).then(handleFulfilledC).catch(handleRejectedAny);
