forked from mdn/translated-content
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[zh-cn]: translation for ServiceWorkerRegistration.cookies property (m…
…dn#19698) Co-authored-by: skyclouds2001 <95597335+skyclouds2001@users.noreply.github.com>
- Loading branch information
1 parent
47ee199
commit f513f93
Showing
1 changed file
with
22 additions
and
0 deletions.
There are no files selected for viewing
22 changes: 22 additions & 0 deletions
22
files/zh-cn/web/api/serviceworkerregistration/cookies/index.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}} |