将触摸事件从Javascript翻译成jQuery
我在用
window.addEventListener("touchstart", function(ev){ console.log(ev.touches); // good }); 我怎样才能把这个翻译成jQuery? 我试过了:
 $(window).bind("touchstart",function(ev){ console.log(ev.touches); // says ev.touches is undefined } 
有任何想法吗?
  jQuery'修复'事件以解决浏览器差异。 当这样做时,您可以随时通过event.originalEvent访问“本地”事件(请参阅本页上的特殊属性副标题)。 
 $(window).on("touchstart", function(ev) { var e = ev.originalEvent; console.log(e.touches); }); 
我知道很久以前就被问过了,但是我认为一个具体的例子可能会有所帮助。