MiniX自绘渲染跨平台框架
  • 框架说明
  • 声明式开发范式
  • 内置Api
指南
接口
  • Minix CLI
示例
  • 类Web框架

    • 框架说明
    • 类Web开发范式
    • 内置Api
  • 指南
  • 组件
  • 接口
  • 示例
  • 规范
  • DophinHybrid

    • 快速上手 (opens new window)
    • UI 组件库 (opens new window)
    • jsBridge 接口 (opens new window)
  • DolphinWeex

    • 快速上手 (opens new window)
    • UI 组件库 (opens new window)
    • jsBridge 接口 (opens new window)
  • 发布消息
  • 常见问题
  • 更新日志
  • 框架说明
  • 声明式开发范式
  • 内置Api
指南
接口
  • Minix CLI
示例
  • 类Web框架

    • 框架说明
    • 类Web开发范式
    • 内置Api
  • 指南
  • 组件
  • 接口
  • 示例
  • 规范
  • DophinHybrid

    • 快速上手 (opens new window)
    • UI 组件库 (opens new window)
    • jsBridge 接口 (opens new window)
  • DolphinWeex

    • 快速上手 (opens new window)
    • UI 组件库 (opens new window)
    • jsBridge 接口 (opens new window)
  • 发布消息
  • 常见问题
  • 更新日志
  • 快速上手
  • Basic 基础

  • Account

  • UI 界面

  • Device 设备

  • Bluetooth 蓝牙

  • Wifi WiFi

  • HomeManage 家庭管理

  • RoomManage 房间管理

  • Media 媒体

  • Location 定位

  • Encryption 加/解密

  • FileStorage 文件/存储

    • zip 压缩文件
    • unzip 解压文件
    • copyFile 复制文件
    • makeDir 新建文件夹
    • readFile 读取文件内容
    • renameFile 重命名文件
    • saveFile 保存文件到本地
    • appendFile 文件追加内容
      • deleteFile 删除文件 / 文件夹
      • isFileExist 判断当前文件是否存在
      • getFileList 获取当前weex应用已经保存的文件
      • getDownloadFileInfo 获取文件的下载信息,包括下载进度和状态。
      • startDownloadFile 开始文件下载
      • pauseDownloadFile 暂停文件下载
      • deleteDownloadFile 删除文件下载相关信息。
    • Http 网络/请求

    • weather 天气信息

    • Siri

    • TelPhone

    请扫码查看示例

    # appendFile ^6.8

    文件追加内容

    # 请求参数

    Prop Type Value Comment
    filePath String - 需要追加的文件
    data String - 需要加密的数据

    # 引入接口模块

    import bridge from '@minix-iot/etsbridge-sdk'
    
    1

    # 参数代码示例

    let params = {
      filePath: 'filename.txt',
      data: 'testdata',
    }
    
    1
    2
    3
    4

    # 接口调用示例

    let params = { filePath: this.filePath, data: this.mData }
    bridge
      .appendFile(params)
      .then((res) => {
        console.log(res)
      })
      .catch((err) => {
        console.log(err)
      })
    
    1
    2
    3
    4
    5
    6
    7
    8
    9

    # 返回参数

    • 成功时返回
    Prop Type Comment
    code Number -
    msg String -

    # 返回示例

    
    {
        "code": 0,
        "msg": "success"
    }
    
    
    1
    2
    3
    4
    5
    6