久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放AV片

<center id="vfaef"><input id="vfaef"><table id="vfaef"></table></input></center>

    <p id="vfaef"><kbd id="vfaef"></kbd></p>

    
    
    <pre id="vfaef"><u id="vfaef"></u></pre>

      <thead id="vfaef"><input id="vfaef"></input></thead>

    1. 站長資訊網(wǎng)
      最全最豐富的資訊網(wǎng)站

      vuejs中的失去焦點事件是什么

      vuejs中的失去焦點事件是“@blur”,當(dāng)元素失去焦點時會觸發(fā)該事件,使用方法:在標(biāo)簽?zāi)0逯刑砑印癅blur="事件處理函數(shù)"”語句綁定事件,使用JavaScript設(shè)置觸發(fā)事件時需要執(zhí)行的代碼即可。

      vuejs中的失去焦點事件是什么

      本教程操作環(huán)境:windows7系統(tǒng)、vue2.9.6版,DELL G3電腦。

      @blur 是當(dāng)元素失去焦點時所觸發(fā)的事件

      @focus是元素獲取焦點時所觸發(fā)的事件

      示例:

       <template>   <div>     <!--     @blur 當(dāng)元素失去焦點時觸發(fā)blur事件     -->     <div>       <input type="text" placeholder="請輸入內(nèi)容" @blur="blurText"/>     </div>     </div> </template>   <script>     export default {       name: "commitText",       methods:{         blurText(){           console.log("blur事件被執(zhí)行了")         }       }     } </script>   <style scoped>   </style>

      贊(0)
      分享到: 更多 (0)
      網(wǎng)站地圖   滬ICP備18035694號-2    滬公網(wǎng)安備31011702889846號