it works when I write the event directly on click,
@click="diary.ispraise=1-diary.ispraise,diary.countpraise+=2*diary.ispraise-1"
when changing to a function to pass a value, I don"t know how to write it. I"d like to ask for advice. no, no, no.
@click="myPra(diary.ispraise,diary.countpraise)"
js:
myPra:function(a,b){
a=1-a;
b+=2*a-1;
}