< div class= "a" data-id="0" > {{state}} < / div >
< div class= "a" data-id="1" > {{state}} < / div >
< div class= "a" data-id="2" > {{state}} < / div >
0 Shipping 1 has been shipped 2 refund
div is looped out of the background data. How to return the corresponding value to the current state.
how to say. That"s how js used to be.
var arr= ["to be shipped", "shipped", "refund"]
arr [{{state}}], what does it say in vue?