blob: 46a66e05c09e9b899d8bc4a8b3c5eef588c700fe (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
---
title: DeviceOrientationEvent.beta
slug: Web/API/DeviceOrientationEvent/beta
translation_of: Web/API/DeviceOrientationEvent/beta
---
<p>{{ ApiRef("Device Orientation Events") }}</p>
<p>返回设备旋转时X轴的值. 即: 角度的数值, 范围介于-180 ------ 180之间 表示设备正在向前或向后倾斜.更多信息见 <a href="/en/DOM/Orientation_and_motion_data_explained" title="Orientation and motion data explained">方向和运动数据详解</a></p>
<h2 id="语法">语法</h2>
<pre class="syntaxbox">var beta = <em>instanceOfDeviceOrientationEvent</em>.beta;</pre>
<h2 id="规范">规范</h2>
<table class="standard-table">
<thead>
<tr>
<th scope="col">Specification</th>
<th scope="col">Status</th>
<th scope="col">Comment</th>
</tr>
</thead>
<tbody>
<tr>
<td>{{SpecName('Device Orientation')}}</td>
<td>{{Spec2('Device Orientation')}}</td>
<td>Initial specification.</td>
</tr>
</tbody>
</table>
<h2 id="浏览器的兼容性">浏览器的兼容性</h2>
{{Compat("api.DeviceOrientationEvent.beta")}}
<h2 id="另请参阅">另请参阅</h2>
<ul>
<li>{{ domxref("DeviceOrientationEvent") }}</li>
<li><a href="/en/Detecting_device_orientation" title="Detecting device orientation">Detecting device orientation</a></li>
<li><a href="/en/DOM/Orientation_and_motion_data_explained" title="Orientation and motion data explained">Orientation and motion data explained</a></li>
<li>{{ domxref("window.ondeviceorientation") }}</li>
<li>{{ event("deviceorientation") }}</li>
</ul>
|