后浪云百度小程序教程:swan.stopPullDownRefresh
- swan.stopPullDownRefresh
- 方法参数
- 示例
- 图片示例
- 代码示例
- 错误码
- Android
- iOS
swan.stopPullDownRefresh
解释:停止当前页面下拉刷新。
方法参数
无
示例
跳转编辑工具
在开发者工具中打开
在 WEB IDE 中打开
扫码体验
代码示例

请使用百度APP扫码
图片示例

代码示例
- SWAN
- JS
<view class="wrap"><view class="card-area"><view class="page-info">下拉页面/点击按钮即可刷新</view><button bind:tap="startPullDownRefresh" disabled="{{disabled}}" hover-stop-propagation="true" type="primary">开始刷新</button><button bind:tap="stopPullDownRefresh" hover-stop-propagation="true" type="primary">停止刷新</button><button data-set="{{textStyle}}" bind:tap="setBackgroundTextStyle" hover-stop-propagation="true" type="primary">点击切换loading样式为:{{textStyle}}</button></view></view>
错误码
Android
| 错误码 | 说明 |
|---|---|
1001 | 执行失败 |
iOS
| 错误码 | 说明 |
|---|---|
201 | 解析失败,请检查调起协议是否合法 |
版权声明:
作者:后浪云
链接:https://idc.net/help/186685/
文章版权归作者所有,未经允许请勿转载。
THE END
