集训第八天--移动端的事件

it2025-03-04  26

移动端和pc端的事件有些不一样

是因为click事件会有200-300毫秒之间的时间延迟

touch事件

touchstart

touchmove

touchend 手指抬起的时候会触发

touchcancel 接电话

touchevent

e.type是获取当前作用对象的事件

e.target 是获取当前事件的作用对象

 

 

无论是touchstart事件,还是touchmove事件,还是touchend事件,所获得的结果都是一样的

 

e.touches

e.changedTouches

e.targetTouches

 

最新回复(0)