解释:隐藏 loading 提示框。

Object object
| 属性名 | 类型 | 必填 | 默认值 | 说明 |
|---|---|---|---|---|
success | function | 否 | 接口调用成功的回调函数 | |
fail | function | 否 | 接口调用失败的回调函数 | |
complete | function | 否 | 接口调用结束的回调函数(调用成功、失败都会执行) |
跳转编辑工具
在开发者工具中打开
在 WEB IDE 中打开
扫码体验
代码示例
请使用百度APP扫码
<view class="wrap"><view class="card-area"><button bindtap="showLoading" type="primary" hover-stop-propagation="true">swan.showLoading</button><button bindtap="hideLoading" type="primary" hover-stop-propagation="true">swan.hideLoading</button></view></view>
| 错误码 | 说明 |
|---|---|
1001 | 执行失败 |