es6 promise.all封裝以及promise.race封裝

function promiseAll(promises){ return new Promise(function(resolve,reject){ if(!Array.isArray(promises)){ return reject(new TypeError("argument must be an array")) }
相關文章
相關標籤/搜索