reading
Limited availability
This feature is not Baseline because it does not work in some of the most widely-used browsers.
AmbientLightSensor
接口的 read-only 属性 reading 返回一个访问 AmbientLightSensorReading
的接口,包含当前的光亮级别。
语法
var sensorReading = AmbientLightLevel.reading
返回值
用例
js
// TBD
规范
Specification |
---|
Ambient Light Sensor # ambient-light-sensor-reading-attribute |
浏览器兼容性
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
illuminance |
Legend
Tip: you can click/tap on a cell for more information.
- No support
- No support
- Experimental. Expect behavior to change in the future.
- See implementation notes.
- User must explicitly enable this feature.
- Has more compatibility info.
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.