tap、taphold两个事件。支持鼠标,手指触摸,触摸笔响应
<script src="jquery.js"></script>
<script src="jquery.event.tap.js"></script>
$('#box').on('tap', evt => console.log(evt));
$('#box').on('taphole', evt => console.log(evt));
$.tap.tapHoldTime = 400; //设置taphold的延时时长
tap、taphold两个事件。支持鼠标,手指触摸,触摸笔响应
<script src="jquery.js"></script>
<script src="jquery.event.tap.js"></script>
$('#box').on('tap', evt => console.log(evt));
$('#box').on('taphole', evt => console.log(evt));
$.tap.tapHoldTime = 400; //设置taphold的延时时长