请教,jquery mobile如何实现触摸屏幕拖动div或者其他元素?


如题,学习jquery以及JQ mobile,最好可以不使用插件.

jquery mobile只有tap,taphold,swipe事件,都是达到条件后便立刻触发.那该如何实现如同控制手机屏幕分页那样的效果,触摸时可拖动元素,松开时才根据条件触发事件.

困扰了很久,请教大家,谢谢.

jquery-mobile jquery Android html5

你有本事开门呀 9 years, 10 months ago

触屏事件用原生提供的touchstart,touchmove,touchend3个事件,理论上3个配合可以实现,但兼容性上需要调整。

路人甲西奈 answered 9 years, 10 months ago

Your Answer