一、采用触摸事件touchmove。1、定义公共变量vartimer=null;varstartY,moveY,initTop,oldTop,newTop;2、添加事件$(‘#containerul‘).on(‘touchstart‘,function(e){startY=e.originalEvent.touches[0].pageY;initTop=0;}); $(‘#containerul‘).on(‘touchmove‘,function(e){moveY=e..
分类:
移动开发 时间:
2015-09-10 17:45:15
阅读次数:
798