大家都知道fastclick能解决300ms延迟,现在我们来看一下,使用方法

1.在终端输入以下命令进行安装

npm install fastclick -S

2.在你用脚手架搭建好的项目中,找到mian.js这个入口文件,打开

大家都知道fastclick能解决300ms延迟,现在我们来看一下,使用方法

3.在其中加入:

import FastClick from 'fastclick'
FastClick.attach(document.body)

位置如图所示

大家都知道fastclick能解决300ms延迟,现在我们来看一下,使用方法

 

posted @ 2018-12-25 17:26 Dawnzhang 阅读(...) 评论(...) 编辑 收藏

相关文章:

  • 2021-08-08
  • 2021-11-19
  • 2021-11-19
  • 2021-11-19
  • 2021-11-19
  • 2021-06-14
  • 2021-06-05
  • 2021-11-19
猜你喜欢
  • 2021-11-30
  • 2021-11-19
  • 2022-12-23
  • 2021-11-19
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案