v-on

接受一个定义的方法来调用。

  1. <button v-on:click="say('hi')">Say hi</button>
  2. <button v-on:click="say('what')">Say what</button>