此页面由社区从英文翻译而来。了解更多并加入 MDN Web Docs 社区。
This feature is not Baseline because it does not work in some of the most widely-used browsers.
Sensor 接口的 hasReading 只读属性返回表示传感器是否具有读数的布尔值。
由于 Sensor 是一个基类,因此你只能从其派生类中读取 hasReading。
布尔值。
| Specification |
|---|
| Generic Sensor API> # sensor-has-reading> |