tap事件怎么知道用户按住按钮多少秒?

发布于 7 年前作者 zzhong5992 次浏览最后编辑 7 年前来自 issues

只用tap事件,不用touchstart和touchend,可以知道用户按住按钮的时间吗

1 回复
qhe
qhe1 楼5 年前

直接用longpress事件