aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/api/touchevent/changedtouches
diff options
context:
space:
mode:
authorPeter Bengtsson <mail@peterbe.com>2020-12-08 14:40:17 -0500
committerPeter Bengtsson <mail@peterbe.com>2020-12-08 14:40:17 -0500
commit33058f2b292b3a581333bdfb21b8f671898c5060 (patch)
tree51c3e392513ec574331b2d3f85c394445ea803c6 /files/zh-cn/web/api/touchevent/changedtouches
parent8b66d724f7caf0157093fb09cfec8fbd0c6ad50a (diff)
downloadtranslated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.gz
translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.bz2
translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.zip
initial commit
Diffstat (limited to 'files/zh-cn/web/api/touchevent/changedtouches')
-rw-r--r--files/zh-cn/web/api/touchevent/changedtouches/index.html34
1 files changed, 34 insertions, 0 deletions
diff --git a/files/zh-cn/web/api/touchevent/changedtouches/index.html b/files/zh-cn/web/api/touchevent/changedtouches/index.html
new file mode 100644
index 0000000000..a286e3a674
--- /dev/null
+++ b/files/zh-cn/web/api/touchevent/changedtouches/index.html
@@ -0,0 +1,34 @@
+---
+title: TouchEvent.changedTouches
+slug: Web/API/TouchEvent/changedTouches
+translation_of: Web/API/TouchEvent/changedTouches
+---
+<p>{{ ApiRef() }}</p>
+
+<h3 id="Summary" name="Summary">概述</h3>
+
+<p>这个 {{ domxref("TouchList") }} 对象列出了和这个触摸事件对应的 {{ domxref("Touch") }} 对象。</p>
+
+<ul>
+ <li>对于 <code>touchstart</code> 事件, 这个 {{ domxref("TouchList") }} 对象列出在此次事件中新增加的触点。</li>
+ <li>对于 <code>touchmove 事件,列出和上一次事件相比较,发生了变化的触点。</code></li>
+ <li><code>对于touchend事件,<strong>changedTouches</strong></code> 是<font face="consolas, Liberation Mono, courier, monospace"><span style="background-color: rgba(220, 220, 220, 0.5);">已经从</span></font>触摸面的离开的触点的集合(也就是说,手指已经离开了屏幕/触摸面)。</li>
+</ul>
+
+<h3 id="Syntax" name="Syntax">语法</h3>
+
+<pre class="eval">var <em>touches</em> = <em>touchEvent</em>.changedTouches;
+</pre>
+
+<p>这是一个只读属性。</p>
+
+<h3 id="Return_Value" name="Return_Value">返回值</h3>
+
+<dl>
+ <dt><code>touches</code></dt>
+ <dd>列出对应这个触摸事件的 {{ domxref("Touch") }} 对象的 {{ domxref("TouchList") }} 对象。</dd>
+</dl>
+
+<h3 id="Specification" name="Specification">标准定义</h3>
+
+<p><a class="external" href="http://www.w3.org/TR/touch-events/" title="http://www.w3.org/TR/touch-events/">Touch Events Specification</a></p>