0
我有一个按钮,并通过5 添加在其上的数据值增量点击事件不会递增,但它是由5计数器在vue.js
https://jsfiddle.net/neyaz90/dkvmmrbd/
<div id="react">
<button @click='counter += 5'>Increment</button>
<p>{{result}}</p>
new Vue({
el:'#react',
data:{
counter:'0'
},
computed:{
result:function(){
return this.counter;
}
}
});
所附
请在此帮忙。
是它的完成了!谢谢 –