收藏
回答

appendFile is not a function?


FileSystemManager.appendFile(Object object)

使用如上方法给本地文件追加内容,提示fs.appendFile is not a function; 


FileSystemManager.appendFileSync(string filePath, string|ArrayBuffer data, string encoding)

使用fs.appendFileSync 也是提示fs.appendFileSync is not a function;


FileSystemManager.writeFile(Object object)

使FileSystemManager.writeFile(Object object) 就可以,请问为什么呢?有了解的朋友吗?


另外在问个问题,写入文件时,如何换行?

下图提示fs.appendFile is not a function


下图提示fs.appendFileSync is not a function


下图正常写入本地文件



最后一次编辑于  2019-09-05
回答关注问题邀请回答
收藏

1 个回答

  • 2019-09-05

    看起来是和基础库的版本有关。

    2019-09-05
    有用
    回复
登录 后发表内容
问题标签