会员
周边
新闻
博问
AI培训
云市场
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
powerio
博客园
首页
新随笔
联系
订阅
管理
2018年4月16日
javascript长按事件实现方式
摘要: 先贴出实践中实现的代码,参考(https://segmentfault.com/q/1010000011640937?sort=created): 先获取元素对象,然后设置ontouchstart和ontouchend事件,注意,这里的是事件,和touchstart(方法)有所区别,然后在手机浏览器
阅读全文
posted @ 2018-04-16 17:17 powerio
阅读(29035)
评论(1)
推荐(0)
编辑
公告