小编duc*_*cpn的帖子

jQuery Mobile 1.3.1 taphold事件被多次激活

我将taphold事件绑定到表的td元素,但是当我点击并按住以触发事件时,它会以某种方式被触发多次.我的示例代码:

$("td").on("taphold", function(){
    alert("taphold fired!");
});
Run Code Online (Sandbox Code Playgroud)

如果我按住水龙头,我将同时收到至少6条警报消息.如何举行活动只是举行一次?我在带有safari和chrome浏览器的Ipad上测试了代码

jquery jquery-plugins jquery-mobile

1
推荐指数
1
解决办法
1214
查看次数

标签 统计

jquery ×1

jquery-mobile ×1

jquery-plugins ×1