// 这里是滚动内容2、源码super-srcoll-view.wxml 赞 踩 super-srcoll-view.wxml super-srcoll-view.ts Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。
微信小程序scroll-view实现下拉刷新_微信小程序 scroll-view 下拉刷新
1、使用方法
<super-scroll-view class="phone-body" bind:lower="onReachBottom" bind:pulldown="onPullDownRefresh"
refreshertriggered="{
{refreshertriggered}}">
// 这里是滚动内容
</super-scroll-view>
2、源码
<scroll-view class="height-full" scroll-y="{
{true}}" refresher-triggered="{
{srefreshertriggered}}" refresher-enabled="{
{true}}"
bindscrolltolower="loadMore" bindscrolltoupper="scrolltoupper" bindscroll="onPageScroll" bindtouchstart="touchStart"
bindtouchend="touchEnd">
<slot />
</scroll-view>
Component({
options: {
addGlobalClass: true
},
/**
* 组件的属性列表
*/
properties: {
r