微信小程序 loading 详解及实例代码
微信小程序 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); } })

感谢阅读,希望能帮助到大家,谢谢大家对本站的支持!

推荐文章
猜你喜欢
附近的人在看
推荐阅读
拓展阅读
相关阅读
网友关注
最新Javascript教程学习
热门Javascript教程学习
编程开发子分类