var promiseAll = (funcs, callback) =>{ var promises = [] for(var i=0; i<funcs.length; i++){ promises.push(new Promise(funcs[i])) } Promise.all(promises).then((result) => { callback(result); }).catch((error) => { console.log(error) }); } promiseAll([ (resolve, reject) =>{ wx.getImageInfo({ src: "http://static.xmappservice.com/pc/10001497943962163.jpg", success: function (res) { resolve(res); }, fail: function(err){ reject(err) } }) }, (resolve, reject) => { wx.getImageInfo({ src: "http://static.xmappservice.com/pc/10041496645191972.jpg", success: function (res) { resolve(res); }, fail: function(err){ reject(err) } }) } ], (res) =>{ console.log(res) });