學(xué)習(xí)vue的vuex,官方例子中有一處看不懂HTML<div id="app"> <p>{{ count }}</p> <p> <button @click="increment">+</button> <button @click="decrement">-</button> </p></div>JS如果要我自己去實(shí)現(xiàn),我會寫mutations:{ increment:function(){ this.state.count++ }}
函數(shù)傳參的問題,vue里的小例子
慕容708150
2019-02-28 22:19:58