微信小程序 loading 详解及实例代码
发布时间:2016-12-30 来源:查字典编辑
摘要:微信小程序开发文档,相关文章:微信小程序action-sheet微信小程序modal微信小程序toast微信小程序loading微信小程序l...
微信小程序 开发文档,相关文章:
微信小程序 action-sheet
微信小程序 modal
微信小程序 toast
微信小程序 loading
微信小程序 loading
hidden | Boolean | false | 是否隐藏 |
示例代码:
<view> <loading hidden="{{hidden}}"> 加载中... </loading> <button type="default" bindtap="loadingTap">点击弹出loading</button> </view>
Page({ data: { hidden: true }, loadingTap: function(){ this.setData({ hidden: false }); var that = this; setTimeout(function(){ that.setData({ hidden: true }); that.update(); }, 3000); } })
感谢阅读,希望能帮助到大家,谢谢大家对本站的支持!