学习点2种点击事件: 1、
<button type="primary" @click="changeName">改变名字</button>
methods: { changeName: function(){ this.name = 'Corlin' } },
2、
<button type="primary" @click="changeName()">改变名字</button>
methods: { changeName():{ this.name = 'Corlin' } },
**文章来源:**blog.csdn.net/CUFEECR/art…