//点击
document.addEventListener('touchstart', function(){});
//移动
document.addEventListener('touchmove', function(ev){
ev = ev || window.event;
//获取鼠标位置
nowX = ev.touches[0].screenX;
nowY = ev.touches[0].screenY;
});
//松开
document.addEventListener('touchend', function(){});
h5+js 移动端监听点击、移动、松开,获取鼠标位置
最新推荐文章于 2024-07-07 00:10:56 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)