我有一个在 android 2.1 中完美运行的网络应用程序,当我升级到 2.2 时,ontouchend 事件中的 pageX 属性,这是我的代码:
menu1.ontouchend = 功能(e){ e.preventDefault(); if (e.touches && e.touches.length>0) { // iPhone x2 = e.touches[0].pageX; y2 = e.touches[0].pageY; } else { // 所有其他 x2 = e.pageX; y2 = e.pageY; } }
任何人都知道从 2.1 到 2.2 的触摸事件的 javascript API 有什么变化??????