3***@qq.com
3***@qq.com
  • 发布:2021-03-16 11:29
  • 更新:2021-03-16 11:29
  • 阅读:1355

uni.removeSavedFile(OBJECT) 删除本地存储的文件。

分类:uni-app
uni.getSavedFileList({  
  success: function (res) {  
    if (res.fileList.length > 0) {  
      uni.removeSavedFile({  
        filePath: res.fileList[0].filePath,  
        complete: function (res) {  
          console.log(res);  
        }  
      });  
    }  
  }  
});

使用官方示例放回结果

{  
    "errMsg": "removeSavedFile:fail 执行出错",  
    "errCode": 10,  
    "code": 10  
}  
2021-03-16 11:29 负责人:无 分享
已邀请:

该问题目前已经被锁定, 无法添加新回复