如何延迟执行 ontouchstart 事件?
可以使用 setTimeout() 函数来延迟执行 ontouchstart 事件,如下所示:
<div ontouchstart='setTimeout(function(){ // your code here }, 2000)'></div>
这将在 ontouchstart 事件触发 2 秒后执行你的代码。
原文地址: https://www.cveoy.top/t/topic/nogI 著作权归作者所有。请勿转载和采集!