1 //tap事件 2 $(document).on("touchstart", function (e) { 3 var $target = $(e.target); 4 if (!$target.hasClass("disable")) 5 $target.data("isMoved", 0); 6 }); 7 $(document).on("touchmove", function (e) { 8 var $target = $(e.target); 9 if (!$target.hasClass("disable")) 10 $target.data("isMoved", 1); 11 }); 12 13 $(document).on("touchend", function (e) { 14 var $target = $(e.target); 15 if (!$target.hasClass("disable") && $target.data("isMoved") == 0) 16 $target.trigger("tap"); 17 });