Answer the question
In order to leave comments, you need to log in
How to bind v-bind to data-id?
Tell me how to correctly bind data-id through v-bind. And then after re-rendering, the same data-id is transmitted
https://jsfiddle.net/oe0x51b9/6/
Answer the question
In order to leave comments, you need to log in
I’m not sure what worked wrong for you, but most likely you didn’t use in the loop v-bind:key
, and your logic could also be slightly simplified due to computed variables https://jsfiddle.net/sn0w14rp/1/
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question