• 移动端300毫秒事件响应延迟解决方法[fastclick]


    vue-cli[2.x]中:

    安装

    npm install fastclick --save

    使用:

    在main.js中 :先 import fastClick from 'fastclick' 然后 fastClick.attach(document.body)

    import Vue from 'vue'
    import App from './App'
    import router from './router'
    import fastClick from 'fastclick'
    import './assets/styles/reset.css'
    import './assets/styles/border.css'
    
    Vue.config.productionTip = false
    fastClick.attach(document.body)
    
    /* eslint-disable no-new */
    new Vue({
      el: '#app',
      router,
      components: { App },
      template: '<App/>'
    })
    main.js
  • 相关阅读:
    网络编程
    GUI编程
    Java数组
    Day24
    Day23
    Day22
    Day21
    Day20
    Day19
    Day18
  • 原文地址:https://www.cnblogs.com/ladybug7/p/12251273.html
Copyright © 2020-2023  润新知