2016年3月12日

为什么tap事件绑定在document上,而不是对象本身上

摘要: 1.在移动端前端开发,click事件有300ms的延时,为了提升用户体验,快速响应。zepto添加了tap事件。tap是在手指触屏横纵向移动距离小于30px,触发tap事件。移动距离的判断是通过touchstart,touchend判断的,touchstart,touchend事件绑定在docume 阅读全文

posted @ 2016-03-12 22:37 冷风飘飘 阅读(336) 评论(0) 推荐(0) 编辑

导航