touch事件

touch事件为h5为移动端提供的事件。

touchstart

手指开始触摸的时候触发,类似于mousedowm

touchmove

手指移动的时候触发,类似于mousemove

touchend

手指离开时触发,类似于mouseup

touch事件的event对象里面的touches是一个坐标对象组成的数组client,screen,page

posted @ 2017-06-20 22:22  打狗的大肉包  阅读(113)  评论(0编辑  收藏  举报