简介:FastClick is a simple, easy-to-use library for eliminating the 300ms delay between a physical tap and the firing of a event on mobile browsers. The aim is to make your application feel less laggy and more responsive while avoiding any interference with your current logic.

GitHub地址

  1. 安装

    1
    npm i fastclick --save
  2. 导入(main.js)

    1
    import FastClick from 'fastclick'
  3. 使用

    1
    2
    //使用fastClick,解决300ms延迟,全局使用
    FastClick.attach(document.body)