Promise topic 02 - promise result, basic process of promise, promise API (constructor, then, catch, resolve, reject, all, race), several key issues

1. promise object value promiseResult A property in promise object: [promiseResult] Save the results of the success or failure of the object This value is manipulated by the resolve and reject functions if (xhr.readyState === 4) { if (xhr.status >= 200 && xhr.status < 300) { resolve(xhr.response) ...

Added by vahidf on Fri, 15 Oct 2021 01:16:44 +0300