demo: photo-slide
支持移动端和pc端
-
touchstart
-
touchmove
-
touchend
$.touch.bind($('.td'), {
start: function(e) {
//console.log('start', e);
},
move: function(e) {
//console.log('move', e);
},
end: function(e) {
console.log('end', e);
},
swipe: function(e) {
if(e.direction == 'left') {
console.log('swipte left', e);
} else if(e.direction == 'right') {
console.log('swipte right', e);
}
}
});
- 2016-5-24 初始化创库可代码,只支持基本的方法,还未实现unbind