button 按钮调用methods中的方法可以不加()
<button v-on:click="ageAddA()"> ageAddA</button>
<button v-on:click="ageAddA"> ageAddA</button>
++++++++++++++++++++++++++++++++++++++++++++++++++++++++
但<p></p> 标签引用方法时,必须加()
<p> age + a = {{ageAddA()}}</p>,页面加载时,执行此function
网友评论