vue项目中添加fastclick的支持
执行fastclick安装命令:
$ npm install fastclick -D
在main.js里引入并给body绑定:
importimport fastclick from 'fastclick'
fastclick.attach(document.body)
之后,package.json中配置:
"dependencies": { "style-loader": "^0.21.0", "stylus": "^0.54.5", "stylus-loader": "^3.0.2", "vue": "^2.5.2", "vue-router": "^3.0.1", "babel-runtime": "^6.0.0", "fastclick":"^1.0.6" },