标签:rdl present 设备 没有 属性 interface eth 种类 触摸屏
对于移动端开发中 touchEvent(触摸事件) 中changedTouches,targetTouches和touches的区别往往不容易弄清,故特意查询了
1. 其中,对 changedTouches 的解释是
A TouchList
whose touch points (Touch
objects) varies depending on the event type, as follows:
touchstart
event, it is a list of the touch points that became active with the current event.touchmove
event, it is a list of the touch points that have changed since the last event.touchend
event, it is a list of the touch points that have been removed from the surface (that is, the set of touch points corresponding to fingers no longer touching the surface).一个触点对象的列表,取决于事件的类型:
2. 对 targetTouches 的解释是
A TouchList
listing all the Touch
objects for touch points that are still in contact with the touch surface and whose touchstart
event occurred inside the same target element
as the current target element.
一个触发touchstart事件时触点所在元素上的所有没有离开触摸表面的触点的集合
3.对 touches 的解释是
A TouchList
listing all the Touch
objects for touch points that are currently in contact with the touch surface, regardless of whether or not they‘ve changed or what their target element was at touchstart
time.
一个不管是否改变或者目标元素是touchstart事件对应的元素的所有没有离开触摸表面触点的列表。
ps:以上中文翻译均为自己理解。
因能力有限,文章中有问题的地方,还请各路高手及时指正。
[JS 基础] touchEvent中的changedTouches,targetTouches和touches的区别
标签:rdl present 设备 没有 属性 interface eth 种类 触摸屏
原文地址:http://www.cnblogs.com/larui/p/6121452.html