使用FastClick.js解决点击延迟现象,使用如下

1. 引用
https://cdn.bootcss.com/fastclick/1.0.6/fastclick.js
//jQuery中使用
 $(function(){
        FastClick.attach(document.body);
}
//纯JavaScript使用
if
('addEventListener' in document) { document.addEventListener('DOMContentLoaded', function() { FastClick.attach(document.body); }, false); }

点击事件的延迟

 

相关文章:

  • 2021-11-19
  • 2021-10-11
  • 2022-01-20
  • 2021-12-09
  • 2021-11-19
  • 2022-01-21
  • 2018-07-13
  • 2021-09-22
猜你喜欢
  • 2021-11-19
  • 2021-08-08
  • 2022-12-23
  • 2021-11-19
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案