uniapp清除缓存
发表于|更新于
|浏览量:
每一幅作品,都是艺术家对自己生命的延伸。——灵遁者
清楚缓存的函数为uni.clearStorage();
以及还有计算缓存大小的函数
1 | uni.getStorageInfo({ |
success 返回参数说明
| 参数 | 类型 | 说明 |
|---|---|---|
| keys | Array<String> | 当前 storage 中所有的 key |
| currentSize | Number | 当前占用的空间大小, 单位:kb |
| limitSize | Number | 限制的空间大小, 单位:kb |
相关推荐
2025-08-20
papermark
常制不可以待变化,一涂不可以应万方,刻船不以索遗剑。一一东晋·葛洪《抱朴子》 https://github.com/mfts/papermark Papermark:开源 DocSend 替代方案,智能文档分享新体验在数字化办公和远程协作日益普及的今天,文档安全分享与跟踪成为企业和个人不可或缺的需求。你是否曾因为发送合同、方案、报告时无法精准掌控访问和分析而苦恼?你是否希望拥有一款既能自定义品牌,又能实时统计文档访问的数据房间工具?如果你的答案是肯定的,那么你一定要试试 Papermark —— 一个正在快速崛起的开源 DocSend 替代项目! 一、项目简介Papermark 是一款完全开源的文档分享与跟踪平台,被誉为“开源版 DocSend”。它支持个性化品牌、定制域名、内置访问分析,并允许开发者和企业自部署、自定义,保障数据安全和可控性。 项目主页:https://papermark.com GitHub地址:https://github.com/mfts/papermark 项目定位:开源、安全、可自托管、可扩展的数据房间/文档分享平台 最新 Star 数...
2024-07-30
Apache ShenYu实现验证失败后才出来验证码
秋天的风都是从往年吹来的。——木心《素履之往》 今天实现了一个功能 [Improve] need verify code when password error by VampireAchao · Pull Request #465 · apache/shenyu-dashboard · GitHub 也很简单,新增一个state,然后在redux-saga的dispatch触发对应的effects,新增一个callback参数传入过去,然后在请求完成后执行
2022-11-07
activeError: error:0308010C:digital envelope routines::unsupported
苛求君子,宽纵小人,自以为明察秋毫,而实则反助小人张目——鲁迅 昨天遇到这个报错了: 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152PS D:\project\promotion\vue\gridsome-starter-default-master> gridsome developGridsome v0.7.23Initializing plugins...Load sources - 0sCreate GraphQL schema - 0.03sCreate pages and templates - 0.15sGenerate temporary code - 0.57sBootstrap finish - 8.57s10% building 1/1 modules 0 activeError: error:0308010C:digital envelope routines::unsupported at new...
2021-12-21
import模块失效
一点浩然气,千里快哉风。——宋•苏轼 昨天公司实习生问我这个import为什么一直报错,他代码如下: 报错信息如下: 1Uncaught SyntaxError: Cannot use import statement outside a module 实际上是因为script标签没有加type导致的 12345678910111213<!DOCTYPE html><html> <head> <meta charset="utf-8"> <title></title> </head> <body> <script type="module"> import {ruben} from './js/module.js' console.log(ruben) </script> </body></html> 这样就可以了 可以看到正常...
2022-05-30
docsify
冗长的黑暗中,你是我唯一的光。——《白夜行》 分享一个文档构建工具docsify 官方网址:https://docsify.js.org/#/zh-cn/ 基本上现在很多开源项目都是基于其构建 主要是样式简洁、编写、部署方便,基于markdown文件生成目录、文章 非常适合程序员 快速开始:https://docsify.js.org/#/zh-cn/quickstart
2024-06-23
apache-website-template
真正的人生,只有在经过艰难卓绝的斗争之后才能实现。——塞涅卡 这个项目 https://github.com/apache/apache-website-template 包含文档和模板,可帮助您的项目构建遵循所有必需的 Apache 网站政策的网站 Apache Website TemplateThis project contains documents and templates to help your project build a website that follows all the required Apache Website Policies. Docusaurus-based template Jekyll-based template Pelican-based template For policies and infrastructure: Managing your project website Release download pages for projects Privacy policy for project website...
