From 641a75fbc5a15724440dce3fc41c92cb1ef23699 Mon Sep 17 00:00:00 2001 From: MDN Date: Wed, 28 Apr 2021 00:11:21 +0000 Subject: [CRON] sync translated content --- .../web/api/window/ondeviceproximity/index.html | 93 ---------------------- 1 file changed, 93 deletions(-) delete mode 100644 files/zh-cn/web/api/window/ondeviceproximity/index.html (limited to 'files/zh-cn/web/api/window/ondeviceproximity') diff --git a/files/zh-cn/web/api/window/ondeviceproximity/index.html b/files/zh-cn/web/api/window/ondeviceproximity/index.html deleted file mode 100644 index df0a897b1c..0000000000 --- a/files/zh-cn/web/api/window/ondeviceproximity/index.html +++ /dev/null @@ -1,93 +0,0 @@ ---- -title: Window.ondeviceproximity -slug: Web/API/Window/ondeviceproximity -translation_of: Web/API/Window/ondeviceproximity ---- -

{{ ApiRef() }}

- -

指定一个事件监听器来接受 {{event("deviceproximity")}} 事件,当设备传感器检测到一个对象越来越接近或远离设备时这些事件就会出现。

- -

语法

- -
window.onuserproximity = funcRef
- -

其中funcRef是在发生 {{event("deviceproximity")}} 事件时要调用的函数。这些事件的类型为{{domxref("DeviceProximityEvent")}}。

- -

规范

- - - - - - - - - - - - - - - - -
SpecificationStatusComment
{{ SpecName('Proximity Events', '#device-proximity', 'Proximity Events') }}{{ Spec2('Proximity Events') }}Initial specification
- -

浏览器兼容性

- -

{{ CompatibilityTable() }}

- -
- - - - - - - - - - - - - - - - - - - -
FeatureChromeFirefox (Gecko)Internet ExplorerOperaSafari
Basic support{{ CompatNo() }}{{ CompatVersionUnknown() }}{{ CompatNo() }}{{ CompatNo() }}{{ CompatNo() }}
-
- -
- - - - - - - - - - - - - - - - - - - - - -
FeatureAndroidChrome for AndroidFirefox Mobile (Gecko)IE MobileOpera MobileSafari Mobile
Basic support{{ CompatNo() }}{{ CompatNo() }}{{ CompatGeckoMobile("15.0") }}{{ CompatNo() }}{{ CompatNo() }}{{ CompatNo() }}
-
- -

See also

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