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
相关文章
相关标签/搜索