137-3385-8848(同微信)

wx.removeStorage(OBJECT),从本地缓存中异步移除指定 key

2022-04-21 管理员

从本地缓存中异步移除指定 key 。

OBJECT参数说明:

参数 类型 必填 说明
key String 本地缓存中的指定的 key
success Function 接口调用的回调函数
fail Function 接口调用失败的回调函数
complete Function 接口调用结束的回调函数(调用成功、失败都会执行)

示例代码:

wx.removeStorage({
  key: 'key',
  success: function(res) {
    console.log(res.data)
  } 
})

更多微信小程序开发教程,关注。

上一篇:wx.removeStorageSync,从本地缓存中同步移除指定 key
下一篇:wx.getStorageInfoSync,同步获取当前storage的相关信息
相关资讯 Releva ntnews
解决方案 Solutions
相关热点 Hot spot
郑州做排名中正确使用关键词优化的方法
  1. 我们的优势
  2. 我们的实力
  3. 选择我们的理由
咨询电话(微信同号)

137-3385-8848(同微信)

豫ICP备16014343号-1

Copyright © 2017-2022 版权所有 酷微科技 Rights Reserved

电话咨询 在线咨询 服务项目 SEO优化