select can directly obtain the selected val.
How to obtain the selected text?
Is there a quick way?
Can I still only use native loops?
typecho2017-06-12 09:34:00
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)
天蓬老师2017-06-12 09:34:00
html5 api this.$refs.mySelector.querySelector('option[selected]').innerText
querySelector
Maybe it can help you
滿天的星座2017-06-12 09:34:00
vue official website example
That’s what I should be talking about. I feel like the questioner has never read the official manual