there is a shopping cart-like page in which each item has a checkbox,value that is the id,change of the item. I need to calculate the total price of the item when I submit it, and I need to get the id of all the selected items when I submit it.
< input type= "checkbox" v muri model = "item.state": value= "item.id" @ change= "count (item)" >
when I am in change, I use item.state to judge the checked status, so how should I get all the value, of the checked status input when I submit? some of the methods I have searched are that input"s v-model is bound to an array of values of the selected state, but I use v-model to determine the selected state, so I don"t know how to get these values. Or can I calculate the total price of the goods in other ways?
I have also looked at the examples in the official documents, but I don"t understand how to do it. Not long after I used vue, I am not very familiar with many things. I hope anyone who understands can tell me how to deal with this problem. Thank you ~