Promise API Overview Constructor var promise = new Promise(function(resolve, reject) { /* (éåæ)å¦ç */ }); Instance Method promise.then(onFulfilled, onRejected); promise.catch(onRejected); Static Method Promise.all() ã Promise.resolve() ãªã©ã®ä¾¿å©ã¡ã½ããç³» Promiseã®ããã³çãªæµã function asyncFunction() { return new Promise(function (resolve, reject) { setTimeout(function () { resolve('Async Hello world'); }, 16);
{{#tags}}- {{label}}
{{/tags}}