diff options
author | Peter Bengtsson <mail@peterbe.com> | 2020-12-08 14:40:17 -0500 |
---|---|---|
committer | Peter Bengtsson <mail@peterbe.com> | 2020-12-08 14:40:17 -0500 |
commit | 33058f2b292b3a581333bdfb21b8f671898c5060 (patch) | |
tree | 51c3e392513ec574331b2d3f85c394445ea803c6 /files/zh-cn/web/api/deviceacceleration | |
parent | 8b66d724f7caf0157093fb09cfec8fbd0c6ad50a (diff) | |
download | translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.gz translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.bz2 translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.zip |
initial commit
Diffstat (limited to 'files/zh-cn/web/api/deviceacceleration')
-rw-r--r-- | files/zh-cn/web/api/deviceacceleration/index.html | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/files/zh-cn/web/api/deviceacceleration/index.html b/files/zh-cn/web/api/deviceacceleration/index.html new file mode 100644 index 0000000000..837f019b73 --- /dev/null +++ b/files/zh-cn/web/api/deviceacceleration/index.html @@ -0,0 +1,46 @@ +--- +title: DeviceAcceleration +slug: Web/API/DeviceAcceleration +tags: + - API + - 传感器 + - 实验性 + - 接口 + - 需要示例 +translation_of: Web/API/DeviceMotionEventAcceleration +--- +<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> |