下拉刷新
pages.json中添加enablePullDownRefresh
属性
1 | { |
页面中
1 | export default { |
上拉加载更多
1 | <scroll-view |
注意scroll-view
必须有明确的高度(比如固定的高度或者是应为弹性布局而有确定的高度)
JS中
1 | export default { |
pages.json中添加enablePullDownRefresh
属性
1 | { |
页面中
1 | export default { |
1 | <scroll-view |
注意scroll-view
必须有明确的高度(比如固定的高度或者是应为弹性布局而有确定的高度)
JS中
1 | export default { |