//判断是滑动还是点击 $('body').on('touchstart touchmove touchend', '#'+_this.model(), function(event) { switch(event.type) { case 'touchstart': window[_this.model()].falg = false; break; case 'touchmove': window[_this.model()].falg = true; break; case 'touchend': if( !window[_this.model()].falg) { console.log('点击'); } else { console.log('滑动'); } break; } });
js手机端判断滑动还是点击
最新推荐文章于 2023-12-29 17:50:08 发布