10 2020 档案
摘要:#####今天写一个模拟懒加载,为啥不是真的懒加载?因为所有数据是从上个页面传过来的,没请求接口。只是防止数据过多,导致页面渲染过慢的问题。 用到的是小程序的onReachBottom方法,官方链接 data: { showList:[],//显示在页面上的数据 hideList:[],//未显示在
阅读全文
摘要:官方链接 movable-view 要在movable-area组件中。 并且必须是子节点,否则不能移动。 wxml: <movable-area class="movable-area" wx:if="{{list&&list.length}}"> <movable-view x="700rpx"
阅读全文

浙公网安备 33010602011771号