既然使用jQuery了,为什么这么绕呢:$('.test').on('touchmove', function() { if ($(this).hasClass('hover')) $(this).removeClass('hover');});