更新时间:2023-12-18 GMT+08:00
分享

清理缓存

清理缓存将会清理当前We码小程序所有的缓存记录。

扫码体验:

请求参数

无。

返回结果

参数

说明

data

成功:success,失败:error

请求示例

  • ES6版本
  HWH5.clearStorage().then(data => {
    console.log(data);
  }).catch(error => {
    console.log('清理本地H5缓存', error);
  });
  • ES5版本
  HWH5.clearStorage().then(function (data) {
    console.log(data);
  }).catch(function (error) {
    console.log('清理本地H5缓存', error);
  });

HWH5.removeStorage

支持版本>=10.0.5

分享:

    相关文档

    相关产品