diff options
Diffstat (limited to 'files/zh-cn/web/api/devicemotioneventacceleration/index.html')
-rw-r--r-- | files/zh-cn/web/api/devicemotioneventacceleration/index.html | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/files/zh-cn/web/api/devicemotioneventacceleration/index.html b/files/zh-cn/web/api/devicemotioneventacceleration/index.html new file mode 100644 index 0000000000..a278374222 --- /dev/null +++ b/files/zh-cn/web/api/devicemotioneventacceleration/index.html @@ -0,0 +1,48 @@ +--- +title: DeviceAcceleration +slug: Web/API/DeviceMotionEventAcceleration +tags: + - API + - 传感器 + - 实验性 + - 接口 + - 需要示例 +translation_of: Web/API/DeviceMotionEventAcceleration +translation_of_original: Web/API/DeviceAcceleration +original_slug: 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> |