touch event 存疑"/>
touch event 存疑
1.原声js与借用jquery输出来的事件列表却不一样
function touchPlay(e)
{e.preventDefault();console.log(e);
}
var screen = document.getElementById("screen");
screen.addEventListener("touchstart", touchPlay, null);
screen.addEventListener("touchmove", touchPlay, null);
输出:
$(function(){$("#screen").on("touchstart touchmove touchend", function(e){console.log(e);});
});
输出:
而如果这样输出,就和使用js输入的是一样了。不清楚jq关于这里的运行原理,存疑。
console.log(e.originalEvent);
转载于:.html
更多推荐
touch event 存疑
发布评论