基于jQuery的轻量级touch事件库
demo: photo-slide支持移动端和pc端touchstart
touchmove
touched
使用方法$.touch.bid($('.td'), { start: fuctio(e) { //cosole.log('start', e); }, move: fuctio(e) { //cosole.log('move', e); }, ed: fuctio(e) { cosole.log('ed', e); }, swipe: fuctio(e) { if(e.directio == 'left') { cosole.log('swipte left', e); } else if(e.directio == 'right') { cosole.log('swipte right', e); } }});更多请看demo示例










评论