vue2.0 綁定 鼠標移入移出事件

<div v-on:mouseover="handleOver($event)" v-on:mouseout="handleOut($event)"></div>


handleOver (e) {
    console.log('移入:', e)
},

handleOut (e) {
    console.log('移出:', e)
}

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章