摘要:        
因为小程序接口wx.uploadFile的限制,一次只能上传一张照片。因此需要想办法解决多个照片上传的问题。 其实原理很简单… 就是在循环that.data.list里的数据,循环调用内含上传接口的方法。 代码如下: 后台:    阅读全文
posted @ 2018-07-04 17:37
阿旭92312
阅读(3044)
评论(0)
推荐(0)
        
            
        
        
摘要:        
1、添加(concat) that.setData({ imgList: that.data.imgList.concat(yulan) }) 2、删除 var imgList = that.data.imgList; imgList.splice(index,1); that.setData({     阅读全文
posted @ 2018-07-04 17:27
阿旭92312
阅读(275)
评论(0)
推荐(0)
        
                    
                
浙公网安备 33010602011771号