swan.hideNavigationBarLoading
解释: 隐藏导航条加载动画。
方法参数
无
示例
跳转编辑工具
扫码体验
代码示例
请使用百度APP扫码
代码示例
- SWAN
- JS
<view class="wrap">
<image class="iphoneImage" mode="widthFix" src="https://b.bdstatic.com/searchbox/icms/searchbox/images/simulator_half.png"></image>
<image class="statusImage" mode="widthFix" src="https://b.bdstatic.com/searchbox/icms/searchbox/image/simulator_half.png"></image>
<view class="titlePosition">
<image s-if="{{loading}}" class="loadingImage" src="https://b.bdstatic.com/searchbox/icms/searchbox/images/loading.gif"></image>
<view>页面标题</view>
</view>
<view class="card-area">
<button bind:tap="showNavigationBarLoading" disabled="{{loading}}" type="primary" hover-stop-propagation="true">显示加载动画</button>
<button bind:tap="hideNavigationBarLoading" disabled="{{!loading}}" type="primary" hover-stop-propagation="true">隐藏加载动画</button>
</view>
</view>
错误码
Android
错误码 | 说明 |
---|---|
1001 | 执行失败 |