gistfile1.txt //删除一张已选中的图片 xImage: function (res){ var that = this; var imgPart = that.data.imgPart; var imgUrls = that.data.imgUrls; var indexNum = res.currentTarget.dataset.index; imgPart.splice(indexNum, 1); imgUrls.s
//删除一张已选中的图片 xImage: function (res){ var that = this; var imgPart = that.data.imgPart; var imgUrls = that.data.imgUrls; var indexNum = res.currentTarget.dataset.index; imgPart.splice(indexNum, 1); imgUrls.splice(indexNum, 1); that.setData({ imgPart, imgUrls }) },