阿西河

所有教程

公众号
🌙
阿西河前端的公众号

我的收藏

    最近访问  (文章)

      教程列表

      抓包专区
      测试专区

      Node.js fs filehandle.appendFile

      Node.js fs filehandle.appendFile(data, options)

      新增于: v10.0.0

      • data < string> | < Buffer>
      • options < Object> | < string>
        • encoding < string> | < null> Default: ‘utf8’
        • mode < integer> Default: 0o666
        • flag < string> See support of file system flags. Default: ‘a’.
      • Returns:

      Asynchronously append data to this file, creating the file if it does not yet exist. data can be a string or a Buffer. The Promise will be resolved with no arguments upon success.

      If options is a string, then it specifies the encoding.

      The FileHandle must have been opened for appending.


      更多内容请参考:Node.js fs 文件系统,或者通过 点击对应菜单 进行查看;


      目录
      本文目录
      目录