wx.removeStorageSync-从本地缓存中同步移除指定 key

wx.removeStorageSync(KEY)

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


参数说明:

参数类型必填说明
keyString本地缓存中的指定的 key


示例代码:

try {
    wx.removeStorageSync('key')
} catch (e) {
    // Do something when catch error
}