Skip to content

Commit

Permalink
[zh-cn]: translation for ServiceWorkerRegistration.cookies property (m…
Browse files Browse the repository at this point in the history
…dn#19698)

Co-authored-by: skyclouds2001 <95597335+skyclouds2001@users.noreply.github.com>
  • Loading branch information
xyy94813 and skyclouds2001 authored Apr 25, 2024
1 parent 47ee199 commit f513f93
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions files/zh-cn/web/api/serviceworkerregistration/cookies/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
title: ServiceWorkerRegistration:cookies 属性
slug: Web/API/ServiceWorkerRegistration/cookies
l10n:
sourceCommit: 60c3843f55839380e0c0cdc293ea694fe9943158
---

{{APIRef("Cookie Store API")}}{{SeeCompatTable}}{{SecureContext_Header}}{{AvailableInWorkers("window_and_service")}}

{{domxref("ServiceWorkerRegistration")}} 接口的 **`cookies`** 只读属性返回 {{domxref("CookieStoreManager")}} 接口的引用,它允许 Web APP 在 [Service Worker](/zh-CN/docs/Web/API/Service_Worker_API) 中订阅和取消订阅 cookie 变更事件。是 [Cookie Store API](/zh-CN/docs/Web/API/Cookie_Store_API) 的入口点。

##

{{domxref("CookieStoreManager")}} 对象实例。

## 规范

{{Specifications}}

## 浏览器兼容性

{{Compat}}

0 comments on commit f513f93

Please sign in to comment.