日期:2014-05-16  浏览次数:20370 次

求推荐 jquery 支持触屏 事件 的插件
求推荐 jquery  支持触屏 事件 的插件
如:
触摸事件
ontouchstart
ontouchmove
ontouchend
ontouchcancel 

------解决方案--------------------
jquery mobile
------解决方案--------------------
楼主你可以这样

//适应触控设备
function eventAdapt(){
mousedown = "mousedown ";
mousemove = "mousemove ";
mouseup = "mouseup ";
mouseout= "mouseout ";
if ('ontouchstart' in window) {
mousedown = "touchstart ";
mousemove = "touchmove ";
mouseup = "touchend ";
mouseout= "touchcancel ";
}
}