账号密码登录
微信安全登录
微信扫描二维码登录

登录后绑定QQ、微信即可实现信息互通

手机验证码登录
找回密码返回
邮箱找回 手机找回
注册账号返回
其他登录方式
分享
  • 收藏
    X
    better-scroll怎么做上拉加载?
    77
    0
    <template>
      <div class="wrapper" ref="wrapper">
        <ul class="content">
            <li v-for="n in 100" :key="n">{{n}}</li>
        </ul>
      </div>
    </template>
    <script>
    import BScroll from "better-scroll";
    export default {
      mounted() {
        this.$nextTick(() => {
          this.scroll = new BScroll(this.$refs.wrapper, {});
        });
      }
    };
    </script>
    <style lang="scss">
    .wrapper {
      position: absolute;
      left: 0;
      top: 0;
      right: 0;
      bottom: 0;
      overflow: hidden;
      background: #fff;
      .content {
        position: relative;
        z-index: 10;
        background: #fff;
        li {
          height: 30px;
          line-height: 30px;
          font-size: 12px;
          padding-left: 20px;
          list-style: none;
          border-bottom: 1px solid #000;
        }
      }
    }
    </style>
    

    后面怎么下拉加载更多数据?谢谢!

    0
    打赏
    收藏
    点击回答
        全部回答
    • 共 0 条
    更多回答
    扫一扫访问手机版
    • 回到顶部
    • 回到顶部