• Skip to main content
  • Skip to search
  • Skip to select language
MDN Web Docs
  • 参考手册
    • 概述 / Web 技术

      适用于开发者的 Web 技术参考手册

    • HTML

      Web 内容的结构

    • CSS

      用于描述文档样式的代码

    • JavaScript

      通用脚本语言

  • 开发指南
    • 概述 / MDN 学习区

      学习 Web 开发

    • MDN 学习区

      学习 Web 开发

    • HTML

      学习使用 HTML 构建 Web 内容

    • CSS

      学习使用 CSS 设置内容样式

    • JavaScript

      学习在浏览器中运行脚本

  • 更多中文网
  1. 面向开发者的 Web 技术
  2. 网络 API
  3. Client
  4. id

目录

  • Value
  • Specifications
  • Browser compatibility
  1. Service Worker API
  2. Client
  3. Instance properties
    1. frameType
    2. id
    3. type
    4. url
  4. Instance methods
    1. postMessage()
  5. Related pages for Service Workers API
    1. Cache
    2. CacheStorage
    3. Clients
    4. ExtendableEvent
    5. ExtendableMessageEvent
    6. FetchEvent
    7. InstallEvent Deprecated
    8. NavigationPreloadManager
    9. Navigator.serviceWorker
    10. ServiceWorker
    11. ServiceWorkerContainer
    12. ServiceWorkerGlobalScope
    13. ServiceWorkerRegistration
    14. Window.caches
    15. WindowClient
    16. WorkerGlobalScope.caches
    17. WorkerNavigator.serviceWorker

目录

  • Value
  • Specifications
  • Browser compatibility

Client: id property

Note: This feature is only available in Service Workers.

The id read-only property of the Client interface returns the universally unique identifier of the Client object.

Value

A string uniquely identifying the object.

Specifications

Specification
Service Workers
# client-id

Browser compatibility

BCD tables only load in the browser

MDN Web 中文网 - 粤ICP备13048890号