Current location - Recipe Complete Network - Complete cookbook - How to place a list in vue's drop-down menu
How to place a list in vue's drop-down menu
Assign the list in the background to cityList.

Assign the background list to cityList, which can be placed in the drop-down menu. If the field names are inconsistent, you need to loop or let the background change the field names.

Vue is a friendly, versatile and high-performance JavaScript framework. Using vue, you can create a code base with better maintainability and testability. Vue allows a web page to be divided into reusable components, and each component contains its own HTML, CSS and JavaScript to render the corresponding position in the web page.