使用scroll-view做下滑加载更多内容
用scroll-view做下滑加载 所必须用到的scroll-view的属性 1.scroll-y 2.scrolltoupper
//scrolltoupper 为下滑到底部的时候所触碰的事件 当更新页面的时候需要这个属性
<template>
<scroll-view :style="{ height: scrollHeight+ 'px' }" :scroll-top="scrollTop" scroll-y="true" class="scroll-Y" @scrolltoupper="upper" @scrolltolower="lower"
@refresherabort="bindrefresherabort">
<view class="scroll-view-item" v-for="(item,index) in marlist">{
{
index+1}} ---- {
{
item.title}}</view>
</scroll-view>
</template>
<script>
export default {
data(){