html52.com
我爱小程序-开发者交流社区

xx.writeFile wx.getSavedFileList 空

const mytmp = `${wx.env.USER_DATA_PATH}/${fileName}`

xx.writeFile({

filePath: mytmp,

encoding: 'binary',

data: fffff,

success: res => {

console.log('write file ok-----------', fileName)

callback({

path: mytmp,

result: res

})

现在是缓存超过10M 无法清空, 如果我每次都用一个文件名,有的安卓系统不能覆盖已有文件。 求解


网友回复

娇华:

请具体描述问题出现的流程,并提供能复现问题的简单代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)。

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

真正的个人免签约支付接口

云免签H5支付