跳到主要内容

方法

2025年01月19日
柏拉文
越努力,越幸运

一、CacheStorage.has()


二、CacheStorage.keys()


三、CacheStorage.open()


3.1 认识

CacheStorage.open() 方法返回一个兑现为匹配 cacheNameCache 对象的 Promise。如果指定的 Cache 不存在,则使用该 cacheName 创建一个新的缓存,并返回一个兑现为这个新的 Cache 对象的 Promise

3.2 语法

open(cacheName);
  • cacheName: 要打开的缓存对象的名称。

四、CacheStorage.match()


五、CacheStorage.delete()