标签:
var ele = document.elementFromPoint(touch.pageX, touch.pageY); //根据坐标直接返回元素document.elementFromPoint()
eg:
$("ul li").on("touchmove touchstart", function(e) {
event.preventDefault();
e = e || window.event;
var touch = e.originalEvent.targetTouches[0];
var ele = document.elementFromPoint(touch.pageX, touch.pageY);
});
标签:
原文地址:http://www.cnblogs.com/mrt-yyy/p/5946258.html