摘要: 1:utils 目录下新建一个Cache.js文件 2:文件下书写以下代码: // 缓存类 class Cache { // 构造方法 单位秒 constructor({ expire = 3600 }) { // 成员属性 过期时间 // 毫秒 this.expire = new Date().g 阅读全文
posted @ 2022-02-23 21:00 王越666 阅读(125) 评论(0) 推荐(0) 编辑