您的位置:首頁技術文章
文章詳情頁

mobile-web-design - html5 touchmove 怎么獲取經過的元素?

瀏覽:48日期: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
相關文章:
国产综合久久一区二区三区