摘要:
因为小程序接口wx.uploadFile的限制,一次只能上传一张照片。因此需要想办法解决多个照片上传的问题。 其实原理很简单… 就是在循环that.data.list里的数据,循环调用内含上传接口的方法。 代码如下: 后台: 阅读全文
摘要:
1、添加(concat) that.setData({ imgList: that.data.imgList.concat(yulan) }) 2、删除 var imgList = that.data.imgList; imgList.splice(index,1); that.setData({ 阅读全文