扫码关注官方订阅号
请问一下,为什么touchend事件触发时,获取不到pageX。
touchend获得不到pageX吗?
运行结果:
小伙看你根骨奇佳,潜力无限,来学PHP伐。
e.touches[0].pageX
在touchstart时候获取pageX,然后在获取touchmove的pageX,就能计算出touchend
微信扫码关注PHP中文网服务号
QQ扫码加入技术交流群
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
PHP学习
技术支持
返回顶部
e.touches[0].pageX
在touchstart时候获取pageX,然后在获取touchmove的pageX,就能计算出touchend