From 0d495ad297d9e90ab35f54a822cd5e4e6a670713 Mon Sep 17 00:00:00 2001 From: MDN Date: Sun, 20 Jun 2021 00:37:04 +0000 Subject: [CRON] sync translated content --- files/zh-cn/web/api/devicelightevent/index.html | 61 ------------------------- 1 file changed, 61 deletions(-) delete mode 100644 files/zh-cn/web/api/devicelightevent/index.html (limited to 'files/zh-cn/web/api/devicelightevent') diff --git a/files/zh-cn/web/api/devicelightevent/index.html b/files/zh-cn/web/api/devicelightevent/index.html deleted file mode 100644 index 3dffcc79b6..0000000000 --- a/files/zh-cn/web/api/devicelightevent/index.html +++ /dev/null @@ -1,61 +0,0 @@ ---- -title: DeviceLightEvent -slug: Web/API/DeviceLightEvent -tags: - - API - - Ambient Light Events - - Experimental - - Interface - - NeedsBetterSpecLink - - NeedsMarkupWork - - 事件 -translation_of: Web/API/DeviceLightEvent ---- -
{{apiref("Ambient Light Events")}}{{SeeCompatTable}}
- -

DeviceLightEvent 为 Web 开发人员提供来自光传感器或类似设备的、关于附近环境光水平的信息。例如,基于当前环境光水平调节屏幕的亮度,以便节省电量或提供更好的阅读性。

- -

属性

- -
-
{{domxref("DeviceLightEvent.value")}}
-
环境光的亮度,单位为 {{interwiki("wikipedia", "lux")}}。
-
- -

示例

- -
window.addEventListener('devicelight', function(event) {
-  console.log(event.value);
-});
- -

规范

- - - - - - - - - - - - - - - - -
规范状态备注
{{ SpecName('AmbientLight', '', 'Ambient Light Events') }}{{ Spec2('AmbientLight') }}Initial specification
- -

浏览器兼容性

- - - -

{{Compat("api.DeviceLightEvent")}}

- -

参见

- - -- cgit v1.2.3-54-g00ecf