您的位置:首页技术文章
文章详情页

mobile-web-design - html5 touchmove 怎么获取经过的元素?

浏览:42日期:2022-12-29 16:10:34

问题描述

如果屏幕上有a b c 三个p。手指从a开始滑动到c怎么获取滑到到c的事件?我给三个p都加了 touchmove。但是target都是a

问题解答

回答1:

$(’body’).on(’touchmove’,function(e){ console.log(e.target);})

标签: Html5
相关文章: