请问一下,为什么touchend事件触发时,获取不到pageX。
touchend获得不到pageX吗?
运行结果:
e.touches[0].pageX
在touchstart时候获取pageX,然后在获取touchmove的pageX,就能计算出touchend