方法
2025年01月19日
一、CacheStorage.has()
二、CacheStorage.keys()
三、CacheStorage.open()
3.1 认识
CacheStorage.open()
方法返回一个兑现为匹配 cacheName
的 Cache
对象的 Promise
。如果指定的 Cache
不存在,则使用该 cacheName
创建一个新的缓存,并返回一个兑现为这个新的 Cache
对象的 Promise
。
3.2 语法
open(cacheName);
cacheName
: 要打开的缓存对象的名称。