1. As shown in the figure: 202 is selected in the drop-down list. The component's change event prints the value (which is what is printed below), but now I just want to get I don’t want to get the value 202 (which is assigned in the label attribute), but I don’t want to get the value printed below. How to solve it? Thank you, I am annoyed by this problem.
Your selection is rendered cyclically in the form of an array object (non-repeating). So it can be obtained by simply operating the data form,
add
@change="changeValue"
Use the Array find method to find the objects in the array using the properties of the object
You can copy it to this address and run it
label(ref="xxx" data="56")
this.$refs.xxx.getAttribute('data')
You can try to reverse the label and value, thank you~