Does vue gain focus or lose focus does not work?

this is html:

<input type="text" v-model="value" @blur="blur" @focus="focuson" />

the following is the trigger event:

 blur(){
    console.log(11111111111111);
 },
 focuson(){
    console.log(11111111111);
 }

did not report an error, but the console did not print? Does any boss know what"s going on?

Nov.30,2021

just wrote a new one, that's right. Check other places


I tried. That's fine.

<input type="text" @focus="focuson" />

methods: {
      focuson(){
        console.log(11111111111);
      }
}

clipboard.png

Menu