Memo
vue イベントハンドリング
Home
›
Memo
›
イベントハンドリング
本稿について
本稿はサイト運営者が学んだことなどを記したメモの内容です。
全てが正確な情報とは限りません。ご注意ください。また修正するべき点は適時修正していきます
v-on:click=“" もしくは @click=“” などの書き方でイベントが発生した時に
実行する関数を指定することができる。
データが更新されたら
<input type=“number" @change="changeContentsPage(currentContentsPage)"></input>
フォーカスが外れたら発動
<input @blur.stop="saveEstimateTime" type="number" v-if="editEstimateTime" :value="task.estimate_time" />
呼ばれたメソッドで対象のvalueを取る
saveEstimateTime: function(event) {
console.warn(event.target.value)
})
[参考]
https://blog-asnpce.com/technology/744
関連ページ
Nuxt routing以前に処理を実行する
#vue
2020-08-13 17:02:26
Firebase hosting で Vue(Nuxt)を動作させる
#vue
2020-10-26 11:09:18
Nuxt Store
#vue
2021-01-08 16:11:24
v-model
#vue
2020-07-13 19:05:01
Back