a v-tap directive of vue.js
npm install vue2-tap --save;
- Available through npm as
vue2-tap
.
npm install vue2-tap --save;
//import vueTap from 'Vue2-tap'
var VueTap = require('vue2-tap')
Vue.use(vueTap)
var VueTap = require('vue2-tap')
Vue.use(VueTap)
<p v-tap="{ handler:method, params:[a,b,$event]}">带参数</p>
<a v-tap="tap">不带参数</a>
new Vue({
el: "#app",
methods : {
method : function(a,b,event) {
},
tap:fucntion(){
}
}
});