FileSystemManager.writeFileSync、FileSystemManager.writeFile
let str = "";
// fs.writeFileSync(`${wx.env.USER_DATA_PATH}/offline-json-${new Date().getDay()}.txt`, str, 'utf8');
fs.writeFile({filePath:`${wx.env.USER_DATA_PATH}/offline-json-${new Date().getDay()}.txt`, data: str, encoding: "utf8",
success(res){
console.log(res);
},
fail(error){
console.log(error);
}})
这两个接口都调不通
设备 苹果iphone6 plus IOS 11.2.5 微信7.0.12
你好,麻烦提供能复现问题的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)