根据文件的File ID 删除文件: wx.cloud.deleteFile( { fileList:[e.currentTarget.dataset.url], success(){ wx.showToast({title: '删除成功',}) }, fail(){ wx.showToast({title: '删除失败',}) }, complete(){} } ); //主要使用的是官方的wx.cloud.deleteFile() 函数
根据文件的File ID 删除文件: wx.cloud.deleteFile( { fileList:[e.currentTarget.dataset.url], success(){ wx.showToast({title: '删除成功',}) }, fail(){ wx.showToast({title: '删除失败',}) }, complete(){} } ); //主要使用的是官方的wx.cloud.deleteFile() 函数