Vue.jsでOnsen UIを利用しています。
v-ons-list内でスクロールしたときに、イベントの発火とスクリーン内の位置を取得したいのですが、どうすればよいでしょうか。
実行したいのは、下記のイメージです。
<v-ons-page> <v-ons-list @onscroll="scrollFunction"> <v-ons-list-item v-for="val in hoge"></v-ons-list-item> </v-ons-list> </v-ons-page>
scrollFunction:function(){ console.log(window.screenY) }
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2017/12/16 08:34
2017/12/16 10:24
2017/12/16 20:40