From b598325e21f9761198106a1e78b06b7b002399a4 Mon Sep 17 00:00:00 2001 From: MDN Date: Sat, 13 Nov 2021 00:48:29 +0000 Subject: [CRON] sync translated content --- files/zh-cn/conflicting/web/api/caches/index.html | 53 +++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 files/zh-cn/conflicting/web/api/caches/index.html (limited to 'files/zh-cn/conflicting/web') diff --git a/files/zh-cn/conflicting/web/api/caches/index.html b/files/zh-cn/conflicting/web/api/caches/index.html new file mode 100644 index 0000000000..0da1e450bc --- /dev/null +++ b/files/zh-cn/conflicting/web/api/caches/index.html @@ -0,0 +1,53 @@ +--- +title: ServiceWorkerGlobalScope.caches +slug: conflicting/Web/API/caches +translation_of: Web/API/ServiceWorkerGlobalScope/caches +original_slug: Web/API/ServiceWorkerGlobalScope/caches +--- +

{{APIRef("Service Workers API")}}

+ +

caches 是一个 {{domxref("ServiceWorkerGlobalScope")}} 接口的只读属性,返回与当前service worker相关联的{{domxref("CacheStorage")}}对象。

+ +

语法

+ +
var myCacheStorage = self.caches;
+
+ +

返回值

+ +

一个 {{domxref("CacheStorage")}} 对象。

+ +

规范

+ + + + + + + + + + + + + + +
规范状态备注
{{SpecName('Service Workers', '#global-caches', 'ServiceWorkerGlobalScope.caches')}}{{Spec2('Service Workers')}}Initial definition.
+ +

浏览器兼容性

+ +
+ + +

{{Compat("api.ServiceWorkerGlobalScope.caches")}}

+
+ +

参见

+ + -- cgit v1.2.3-54-g00ecf