微信小程序 loading 组件实例详解

loading通常使用在请求网络数据时的一种方式,通过hidden属性设置显示与否

主要属性

rush:xml;">

rush:js;"> Page({ data:{ // text:"这是一个页面" hiddenLoading: true },/** * 监听button点击事件 */ listenerButton:function(){ this.setData({ hiddenLoading: !this.data.hiddenLoading }) },onLoad:function(options){ // 页面初始化 options为页面跳转所带来的参数 },onReady:function(){ // 页面渲染完成 },onShow:function(){ // 页面显示 },onHide:function(){ // 页面隐藏 },onUnload:function(){ // 页面关闭 } })

文章:

相关文章

开发微信小程序的用户授权登录功能
小程序开发页面如何实现跳转?
浅谈小程序开发中蓝牙连接错误分析及解决方法
什么是小程序?它有哪些功能?
如何配置小程序开发项目结构?(教程)
怎么把自己的店加入小程序