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

Sensor:timestamp 属性

Limited availability

This feature is not Baseline because it does not work in some of the most widely-used browsers.

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

Sensor 接口的 timestamp 只读属性返回传感器的最新读数的时间戳。

由于 Sensor 是一个基类,因此你只能从其派生类中读取 timestamp