Skip to content

FileSystemManager.appendFile

JS
    FileSystemManager.appendFile(Object object)

在文件结尾追加内容

参数

  • Object object: 传入参数,具体的属性见下表

object 的属性说明:

属性键值类型默认值是否必填说明
filePathstring要追加内容的文件路径
datastring要追加的文本或二进制数据
encodingstringutf8指定写入文件的字符编码,合法值见下图
successfunction接口调用成功的回调函数
failfunction接口调用失败的回调函数
completefunction接口调用结束的回调函数

encoding 合法值说明

说明
utf8utf-8 字符编码
utf-8utf-8 字符编码
binary二进制