移动端拖拽的时候不触发点击事件
var isClick = true;
$('li').on('touchstart', function(e){
isClick = true;
});
$('li').on('touchmove', function(e){
isClick = false;
});
$('li').on('touchend', function(e){
if (isClick == true){
console.log("触发点击事件");
}
})

浙公网安备 33010602011771号