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('触底了'); }, ...

浙公网安备 33010602011771号