VUE2:scroll-view控制实现h5下的触底刷新功能

template代码:

<template>
  <view>
    <scroll-view scroll-y="true" @scrolltolower="handleReachBottom" style="height: 100vh;">
        内容部份
    </scroll-view>
  </view>
</template>

script代码:

...
methods: {
      handleReachBottom(e) {
        console.log('触底了');
      },
...

 

posted @ 2024-05-14 10:53  1024记忆  阅读(237)  评论(0)    收藏  举报