摘要: 做app开发时,用到了webview,需要监听webview的长按事件,使用原生的js处理监听如下: 这里设置500ms点击为长按处理,主要用到了3个事件: ontouchstart、ontouchmove、ontouchend,主要思路: 在ontouchstart事件中启动一个定时器,定时器间隔 阅读全文
posted @ 2016-10-28 15:56 程序员小波与Bug 阅读(3781) 评论(0) 推荐(0)