1<div id="example-3">
2 <button v-on:click="say('salut')">Dire salut</button>
3 <button v-on:click="say('quoi')">Dire quoi</button>
4</div>
1new Vue({
2 el: '#example-3',
3 methods: {
4 say: function (message) {
5 alert(message)
6 }
7 }
8})