Promise 經常使用API

1. Promise#then promise.then(onFulfilled, onRejected); 1 示例:Promise#thenphp var promise = new Promise(function(resolve, reject) { resolve("傳遞給then的值"); }); promise.then(function(value) { conso
相關文章
相關標籤/搜索