1. The method above can be obtained by obtaining the DOM. 2. Traverse the list through a specific value and obtain the text. 3. Establish the mapping between value and label through objects, which can improve the efficiency of data acquisition. (recommended)
1. The method above can be obtained by obtaining the DOM. 2. Traverse the list through a specific value and obtain the text. 3. Establish the mapping between value and label through objects, which can improve the efficiency of data acquisition. (recommended)
html5 api
this.$refs.mySelector.querySelector('option[selected]').innerText
querySelectorMaybe it can help you
vue official website example
That’s what I should be talking about. I feel like the questioner has never read the official manual