微信小程序 ES6Promise.all批量上传文件实现代码
客户端
Page({
onLoad: function() {
wx.chooseImage({
count: 9,
success: function({ tempFilePaths }) {
var promise = Promise.all(tempFilePaths.map((tempFilePath, index) => {
return new Promise(function(resolve, reject) {
wx.u