此页面由社区从英文翻译而来。了解更多并加入 MDN Web Docs 社区。

View in English Always switch to English

PushSubscription:expirationTime 属性

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since 2023年3月.

安全上下文: 此特性仅在一些支持的浏览器安全上下文(HTTPS)中可用。

备注: 此特性在 Web Worker 中可用。

PushSubscription 接口的 expirationTime 只读属性返回表示与推送订阅关联的订阅过期时间的 DOMHighResTimeStamp(如果存在);若不存在则返回 null