触摸和目标触摸之间的区别

发布于 2024-11-25 18:10:00 字数 324 浏览 3 评论 0原文

我正在尝试学习移动网络应用程序开发并经历; http://www.html5rocks.com/en/mobile/touch.html

我想了解 Touches 和 targetTouches 之间的区别...不是字面意义上的(就像我确实理解 targetTouches 特定于某个元素一样)

我想从语法角度了解更多...就像我们在任何内容中说 targetTouches 时一样函数,我们到底指的是什么...任何例子真的很棒..

I am trying to learn mobile web app development and going through ;
http://www.html5rocks.com/en/mobile/touch.html

I wanted to understand the difference between touches and targetTouches... Not in a literal sense (like I do understand targetTouches is specific to an element)

I wanted to understand more from a syntax perspective... like when we say targetTouches inside any function, what exactly are we referring to... Any example would be really great..

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

手心的海 2024-12-02 18:10:00

触摸:当前触摸屏幕的每个手指的信息列表。

targetTouches:与触摸类似,但仅过滤在同一节点内开始的手指触摸的信息。

更多信息

touches: A list of information for every finger currently touching the screen.

targetTouches: Like touches, but is filtered to only the information for finger touches that started out within the same node.

More info here

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文