|
微信小程序 Artand Demo
FeaturesPS下拉刷新需要在全局的 app.json 里配置
- <span class="pl-s" style="box-sizing: border-box; color: rgb(24, 54, 145);"><span class="pl-pds" style="box-sizing: border-box;">"</span>window<span class="pl-pds" style="box-sizing: border-box;">"</span></span><span class="pl-k" style="box-sizing: border-box; color: rgb(167, 29, 93);">:</span>{
- <span class="pl-s" style="box-sizing: border-box; color: rgb(24, 54, 145);"><span class="pl-pds" style="box-sizing: border-box;">"</span>enablePullDownRefresh<span class="pl-pds" style="box-sizing: border-box;">"</span></span><span class="pl-k" style="box-sizing: border-box; color: rgb(167, 29, 93);">:</span> <span class="pl-c1" style="box-sizing: border-box; color: rgb(0, 134, 179);">true</span>
- }
复制代码 有两个用于下拉刷新的事件- <span class="pl-c" style="box-sizing: border-box; color: rgb(150, 152, 150);">// 下拉刷新触发事件</span>
- <span class="pl-en" style="box-sizing: border-box; color: rgb(121, 93, 163);">Page</span>({
- <span class="pl-en" style="box-sizing: border-box; color: rgb(121, 93, 163);">onPullDownRefresh</span> () {
- }
- })
- <span class="pl-c" style="box-sizing: border-box; color: rgb(150, 152, 150);">// 停止下拉刷新</span>
- <span class="pl-smi" style="box-sizing: border-box;">wx</span>.<span class="pl-en" style="box-sizing: border-box; color: rgb(121, 93, 163);">stopPullDownRefresh</span>()
复制代码 |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?立即注册
×
|