Home > front end >  Vue dynamic access to data and used as a search box
Vue dynamic access to data and used as a search box

Time:11-05

In vue front desk page I add a provincial league drop-down box, and then need a dynamic data, search should be, the problem is I don't understand option inside the inside of the v - for the logic of the code, I put the code and see it, & lt; El - form - the item label="province" & gt;


V - for="(item) in this. The index"

: key="item. The index"
: label="item. The label"
: value="https://bbs.csdn.net/topics/item.value" & gt;





V - for="item in this cities"
: key="item. The text"
: label="item. The label"
: value="https://bbs.csdn.net/topics/item.value" & gt;




This is the above code page

Then the index: [], this is my initial field
After the logic of how can I write

  • Related