手机端获取pageX和pageY:
touchstart事件下获取:e.originalEvent.targetTouches[0].pageX。
touchmove事件下获取:e.originalEvent.targetTouches[0].pageX。
touchend事件的下获取:e.originalEvent.changedTouches[0].pageX 。
每个Touch对象包含的属性如下。
clientX:触摸目标在视口中的x坐标。
clientY:触摸目标在视口中的y坐标。
identifier:标识触摸的唯一ID。
pageX:触摸目标在页面中的x坐标。
pageY:触摸目标在页面中的y坐标。
screenX:触摸目标在屏幕中的x坐标。
screenY:触摸目标在屏幕中的y坐标。
target:触目的DOM节点目标。
touchstart事件下获取:e.originalEvent.targetTouches[0].pageX。
touchmove事件下获取:e.originalEvent.targetTouches[0].pageX。
touchend事件的下获取:e.originalEvent.changedTouches[0].pageX 。
每个Touch对象包含的属性如下。
clientX:触摸目标在视口中的x坐标。
clientY:触摸目标在视口中的y坐标。
identifier:标识触摸的唯一ID。
pageX:触摸目标在页面中的x坐标。
pageY:触摸目标在页面中的y坐标。
screenX:触摸目标在屏幕中的x坐标。
screenY:触摸目标在屏幕中的y坐标。
target:触目的DOM节点目标。