抖音开放平台Logo
开发者文档
“/”唤起搜索
控制台
  • JS API 列表
  • 基础
  • TTML
  • 网络
  • 媒体
  • 地图
  • 文件
  • 数据缓存
  • 本地数据缓存说明
  • tt.getStorage
  • tt.getStorageSync
  • tt.setStorage
  • tt.setStorageSync
  • tt.removeStorage
  • tt.removeStorageSync
  • tt.clearStorage
  • tt.clearStorageSync
  • tt.getStorageInfo
  • tt.getStorageInfoSync
  • 地理位置
  • 设备
  • 画布
  • 界面
  • 页面导航
  • 开放接口
  • 行业开放
  • 第三方平台
  • 其它
  • 生活服务
  • tt.clearStorageSync
    收藏
    我的收藏

    基础库 1.0.0 开始支持本方法,这是一个同步方法。

    清理本地数据缓存的同步接口。

    前提条件
    业务背景
    使用限制
    注意事项
    支持沙盒
    相关教程

    语法

    tt.clearStorageSync()

    参数说明

    返回值

    扫码体验

    请使用字节宿主APP扫码

    代码示例