On the problem of passing values of vue @ change

ask the great god, how to get the value of the drop-down in the problem of passing the value of the code in vue?

<select @change="changeMethods(value)">
   <option value="1">1label</option>
   <option value="2">2lable</option>
</select>

changeMethods: function(value) {

  value-- undefined
}
Apr.05,2021

Page

<select @change="changeMethods()" v-model="selectValue">
          <option value="1">1label</option>
          <option value="2">2lable</option>
</select>

js

data() {
      return {
           selectValue: '1'
      };
},
methods: {
      changeMethods(){
            console.log(this.selectValue)
      }
}

http://jsbin.com/joxexowano/3.


Replace

with v-modal , and then change the listening value in watch

.
</option>
    <option>A</option>
    <option>B</option>
    <option>C</option>
  </select>
  <span>Selected: {{ selected }}</span>
</div>

...

watch: {
  selected (newValue) {
    console.log(newValue)
  }
}
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3c565-2c2ff.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3c565-2c2ff.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?