【发布时间】:2011-08-26 04:39:54
【问题描述】:
一直在拔头发,不停地在谷歌上搜索,但找不到解决方案。通过 touchstart 和 touchmove 事件,我可以从 touches.identifier 中检索一个唯一的 id。这是不可能的,因为触摸不适用于 touchend 事件。
我想创建一个 div 并在 touchstart 发生时分配与 touches.identifer 相同的 id。
在 touchmove 事件期间更新 div 中的 x y 字符串。
在 touchend 事件上使用 jquery remove() 删除 div。
第 3 步是我碰壁的地方,我打算使用 $("#"+e.touches.identifier).remove();
对实现第 3 步有什么建议吗?
非常感谢您的帮助!
【问题讨论】:
标签: jquery web-applications multi-touch touch-event