【发布时间】:2011-05-30 07:24:35
【问题描述】:
当我尝试实现以下代码时:
$('.touchelement').bind({'touchstart':function(e){
console.info(e.touches.item(0));
}});
它将输出显示为未定义。不仅在 touchstart 中,而且对于所有其他事件,例如 (touchmove, touchend),它都会显示相同的结果。
有没有其他方法可以使用 jQuery 绑定 touchstart 事件。
【问题讨论】:
标签: javascript jquery ios jquery-events