From 33058f2b292b3a581333bdfb21b8f671898c5060 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:40:17 -0500 Subject: initial commit --- .../web/api/deviceorientationevent/beta/index.html | 97 ++++++++++++++++++++++ 1 file changed, 97 insertions(+) create mode 100644 files/zh-cn/web/api/deviceorientationevent/beta/index.html (limited to 'files/zh-cn/web/api/deviceorientationevent/beta') diff --git a/files/zh-cn/web/api/deviceorientationevent/beta/index.html b/files/zh-cn/web/api/deviceorientationevent/beta/index.html new file mode 100644 index 0000000000..9cec365dce --- /dev/null +++ b/files/zh-cn/web/api/deviceorientationevent/beta/index.html @@ -0,0 +1,97 @@ +--- +title: DeviceOrientationEvent.beta +slug: Web/API/DeviceOrientationEvent/beta +translation_of: Web/API/DeviceOrientationEvent/beta +--- +

{{ ApiRef("Device Orientation Events") }}

+ +

返回设备旋转时X轴的值. 即: 角度的数值, 范围介于-180 ------ 180之间  表示设备正在向前或向后倾斜.更多信息见  方向和运动数据详解

+ +

语法

+ +
var beta = instanceOfDeviceOrientationEvent.beta;
+ +

规范

+ + + + + + + + + + + + + + + + +
SpecificationStatusComment
{{SpecName('Device Orientation')}}{{Spec2('Device Orientation')}}Initial specification.
+ +

浏览器的兼容性

+ +

{{CompatibilityTable}}

+ +
+ + + + + + + + + + + + + + + + + + + + + +
FeatureChromeEdgeFirefox (Gecko)Internet ExplorerOperaSafari (WebKit)
Basic support7.0{{CompatVersionUnknown}}6 [1]{{CompatUnknown}}{{CompatUnknown}}{{CompatUnknown}}
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
FeatureAndroidEdgeFirefox Mobile (Gecko)IE MobileOpera MobileSafari Mobile
Basic support3.0{{CompatVersionUnknown}}6 [1]{{CompatNo}}{{CompatNo}}4.2
+
+ +

[1] Firefox 3.6, 4, and 5 supported mozOrientation instead of the standard DeviceOrientationEvent interface

+ +

另请参阅

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