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

前端之家收集整理的这篇文章主要介绍了微信小程序 loading 组件实例详解前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

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

主要属性

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

文章:

@L_502_12@

原文链接:https://www.f2er.com/weapp/45511.html

猜你在找的微信小程序相关文章