本文主要介绍Vue2.0 fastclick的使用,解决300ms延迟。
一、安装依赖fastclick
npm install fastclick
二、全局引入
在main.js中
import fastClick from 'fastclick'
fastClick.attach(document.body);
三、局部取消fastclick来立刻触发点击事件
<a class="needsclick">Ignored by FastClick</a>
本文主要介绍Vue2.0 fastclick的使用,解决300ms延迟。
一、安装依赖fastclick
npm install fastclick
二、全局引入
在main.js中
import fastClick from 'fastclick'
fastClick.attach(document.body);
三、局部取消fastclick来立刻触发点击事件
<a class="needsclick">Ignored by FastClick</a>