v-on
import Vue from "vue";
new Vue({
el: "#app",
data: {
count: 1
},
methods: {
plus() {
this.count = this.count + 1;
// or this.count++
}
}
});
Last updated
import Vue from "vue";
new Vue({
el: "#app",
data: {
count: 1
},
methods: {
plus() {
this.count = this.count + 1;
// or this.count++
}
}
});
Last updated