移动开发平台文档
H5云组件
  • H5云组件
  • LightAPP
  • 小程序
  • JSSDK
  • UI

wx.clearStorageSync()

wx.clearStorage 的同步版本。

从本地缓存中同步清空storage。

示例代码

wx.clearStorageSync()
上次更新:2021-08-10
目录
  1. 示例代码
回到顶部
基础
    console定时器wx.getSystemInfoSyncwx.getSystemInfo
路由
    wx.switchTabwx.navigateTowx.navigateBackwx.redirectTo
界面
    wx.pageScrollTowx.showToastwx.hideToastwx.showLoadingwx.hideLoadingwx.showModalwx.startPullDownRefreshwx.stopPullDownRefreshwx.hideKeyboardwx.showTabBarwx.setTabBarBadgewx.removeTabBarBadgewx.showTabBarRedDotwx.hideTabBarRedDotwx.setTabBarStylewx.setTabBarItemwx.setNavigationBarTitlewx.setNavigationBarColorwx.setBackgroundColorwx.showNavigationBarLoadingwx.hideNavigationBarLoadingwx.getMenuButtonBoundingClientRectwx.createAnimation
定位
    wx.getLocationwx.startLocationUpdatewx.stopLocationUpdatewx.onLocationChangewx.offLocationChange
扫码
    wx.scanCode
画布
    canvas
网络
    wx.requestwx.connectSocketSocketTask
文件
    gmu.chooseFilewx.uploadFilewx.downloadFilewx.getFileInfowx.saveFilewx.getSavedFileListwx.getSavedFileInfo
数据缓存
    wx.setStoragewx.setStorageSyncwx.getStoragewx.getStorageSyncwx.removeStoragewx.removeStorageSyncwx.getStorageInfowx.getStorageInfoSyncwx.clearStoragewx.clearStorageSync
媒体
    gmu.chooseImagewx.chooseImagegmu.compressImagewx.getImageInfowx.saveImageToPhotosAlbumwx.previewImagewx.stopVoicewx.playVoicewx.pauseVoicewx.createAudioContextwx.createInnerAudioContext
开放接口
    wx.loginwx.checkSessionwx.authorizewx.getUserInfogmu.getSensitiveInfowx.navigateToMiniProgramwx.navigateBackMiniProgram
生物认证
    wx.startSoterAuthenticationwx.checkIsSoterEnrolledInDevicewx.checkIsSupportSoterAuthentication
加速度
    wx.startAccelerometerwx.stopAccelerometerwx.onAccelerometerChangewx.offAccelerometerChange
国密
    gmu.createCrypto
键盘
    gmu.createKeyBoard
日历
    gmu.createCalendargmu.updateCalendargmu.deleteCalendargmu.queryCalendar
设备
    wx.getClipboardDatawx.setClipboardDatawx.getNetworkTypewx.makePhoneCallwx.vibrateShortwx.vibrateLong
WXML
    wx.createSelectorQuery
第三方平台
    wx.getExtConfigwx.getExtConfigSync
多平台支持
    接口
客服电话:0571-28829564(恒生短号9564) | 商务邮箱:light@hundsun.com
恒生客服 | 恒生电子 | 恒生技术之眼
Copyright©2010 Hundsun Technologies Inc.All Rights Reserved 浙ICP备09092082号-5
  • 移动开发平台文档
基础
    console定时器wx.getSystemInfoSyncwx.getSystemInfo
路由
    wx.switchTabwx.navigateTowx.navigateBackwx.redirectTo
界面
    wx.pageScrollTowx.showToastwx.hideToastwx.showLoadingwx.hideLoadingwx.showModalwx.startPullDownRefreshwx.stopPullDownRefreshwx.hideKeyboardwx.showTabBarwx.setTabBarBadgewx.removeTabBarBadgewx.showTabBarRedDotwx.hideTabBarRedDotwx.setTabBarStylewx.setTabBarItemwx.setNavigationBarTitlewx.setNavigationBarColorwx.setBackgroundColorwx.showNavigationBarLoadingwx.hideNavigationBarLoadingwx.getMenuButtonBoundingClientRectwx.createAnimation
定位
    wx.getLocationwx.startLocationUpdatewx.stopLocationUpdatewx.onLocationChangewx.offLocationChange
扫码
    wx.scanCode
画布
    canvas
网络
    wx.requestwx.connectSocketSocketTask
文件
    gmu.chooseFilewx.uploadFilewx.downloadFilewx.getFileInfowx.saveFilewx.getSavedFileListwx.getSavedFileInfo
数据缓存
    wx.setStoragewx.setStorageSyncwx.getStoragewx.getStorageSyncwx.removeStoragewx.removeStorageSyncwx.getStorageInfowx.getStorageInfoSyncwx.clearStoragewx.clearStorageSync
媒体
    gmu.chooseImagewx.chooseImagegmu.compressImagewx.getImageInfowx.saveImageToPhotosAlbumwx.previewImagewx.stopVoicewx.playVoicewx.pauseVoicewx.createAudioContextwx.createInnerAudioContext
开放接口
    wx.loginwx.checkSessionwx.authorizewx.getUserInfogmu.getSensitiveInfowx.navigateToMiniProgramwx.navigateBackMiniProgram
生物认证
    wx.startSoterAuthenticationwx.checkIsSoterEnrolledInDevicewx.checkIsSupportSoterAuthentication
加速度
    wx.startAccelerometerwx.stopAccelerometerwx.onAccelerometerChangewx.offAccelerometerChange
国密
    gmu.createCrypto
键盘
    gmu.createKeyBoard
日历
    gmu.createCalendargmu.updateCalendargmu.deleteCalendargmu.queryCalendar
设备
    wx.getClipboardDatawx.setClipboardDatawx.getNetworkTypewx.makePhoneCallwx.vibrateShortwx.vibrateLong
WXML
    wx.createSelectorQuery
第三方平台
    wx.getExtConfigwx.getExtConfigSync
多平台支持
    接口