aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/api/deviceacceleration/index.html
blob: 34b215d7815f91b4b2f179b12d66e69d17bd8c50 (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
46
47
---
title: DeviceAcceleration
slug: Web/API/DeviceAcceleration
tags:
  - API
  - 传感器
  - 实验性
  - 接口
  - 需要示例
translation_of: Web/API/DeviceMotionEventAcceleration
translation_of_original: Web/API/DeviceAcceleration
---
<div>{{ ApiRef("Device Orientation Events") }}{{SeeCompatTable}}</div>

<div> </div>

<p><span class="short_text" id="result_box" lang="zh-CN"><span>设备加速对象可以提供有关设备沿三个轴(x、y、z)的加速度的信息。</span></span></p>

<h2 id="属性">属性</h2>

<dl>
 <dt>{{domxref("DeviceAcceleration.x")}} {{readonlyInline}}</dt>
 <dd><span class="short_text" id="result_box" lang="zh-CN"><span>沿X轴的加速度量(</span><span>只读)</span></span></dd>
 <dt>{{domxref("DeviceAcceleration.y")}} {{readonlyInline}}</dt>
 <dd><span class="short_text" id="result_box" lang="zh-CN"><span>沿Y轴的加速度量(</span><span>只读)</span></span></dd>
 <dt>{{domxref("DeviceAcceleration.z")}} {{readonlyInline}}</dt>
 <dd><span class="short_text" id="result_box" lang="zh-CN"><span>沿Z轴的加速度量(</span><span>只读)</span></span></dd>
</dl>

<h2 id="Specifications" name="Specifications">说明</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", "#device_acceleration", "DeviceAcceleration")}}</td>
   <td>{{Spec2("Device Orientation")}}</td>
   <td>Initial definition</td>
  </tr>
 </tbody>
</table>