diff options
author | t7yang <t7yang@gmail.com> | 2021-07-17 16:10:02 +0800 |
---|---|---|
committer | Irvin <irvinfly@gmail.com> | 2021-07-19 23:04:27 +0800 |
commit | a02f4b2f60c81e09b318a090e5c9c2d2d641c878 (patch) | |
tree | 2b1849e7a34cb367ff6624e35a35fc827eceef6b /files/zh-cn/web/api/touch/target | |
parent | 8af4d5e8a260f3474b4273d573532ec6fec08ab4 (diff) | |
download | translated-content-a02f4b2f60c81e09b318a090e5c9c2d2d641c878.tar.gz translated-content-a02f4b2f60c81e09b318a090e5c9c2d2d641c878.tar.bz2 translated-content-a02f4b2f60c81e09b318a090e5c9c2d2d641c878.zip |
replace wiki links in zh-CN
Diffstat (limited to 'files/zh-cn/web/api/touch/target')
-rw-r--r-- | files/zh-cn/web/api/touch/target/index.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/files/zh-cn/web/api/touch/target/index.html b/files/zh-cn/web/api/touch/target/index.html index be815271e8..7abb8b55fb 100644 --- a/files/zh-cn/web/api/touch/target/index.html +++ b/files/zh-cn/web/api/touch/target/index.html @@ -16,7 +16,7 @@ translation_of: Web/API/Touch/target <h2 id="Summary" name="Summary">概述</h2> -<p>这个属性返回触摸点最初接触的 <a href="https://wiki.developer.mozilla.org/zh-CN/docs/Web/API/Element"><code>Element</code></a>,即使这个触摸点已经移出那个元素的交互区域,甚至移出文档。需要注意的是,如果这个元素在触摸过程中被移除,这个事件仍然会指向它,因此这个事件也不会冒泡到 <code>window</code> 或 <code>document</code> 对象。因此,如果有元素在触摸过程中可能被移除,最佳实践是将触摸事件的监听器绑定到这个元素本身,防止元素被移除后,无法再从它的上一级元素上侦测到从该元素冒泡的事件。</p> +<p>这个属性返回触摸点最初接触的 <a href="/zh-CN/docs/Web/API/Element"><code>Element</code></a>,即使这个触摸点已经移出那个元素的交互区域,甚至移出文档。需要注意的是,如果这个元素在触摸过程中被移除,这个事件仍然会指向它,因此这个事件也不会冒泡到 <code>window</code> 或 <code>document</code> 对象。因此,如果有元素在触摸过程中可能被移除,最佳实践是将触摸事件的监听器绑定到这个元素本身,防止元素被移除后,无法再从它的上一级元素上侦测到从该元素冒泡的事件。</p> <h2 id="Syntax" name="Syntax">语法</h2> |