国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 編程 > JavaScript > 正文

微信小程序 loading 組件實例詳解

2019-11-20 08:51:42
字體:
來源:轉載
供稿:網友

loading通常使用在請求網絡數據時的一種方式,通過hidden屬性設置顯示與否

主要屬性:

wxml

<!----><button type="primary" bindtap="listenerButton">顯示loading</button><!--默認隱藏--><loading hidden="{{hiddenLoading}}">正在加載</loading>

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(){ // 頁面關閉 }})

相關文章:

hello WeApp                      icon組件
Window 
                            text組件                                switch組件
tabBar底部導航                 progress組件                        action-sheet
應用生命周期                    button組件                            modal組件
頁面生命周期
                    checkbox組件                       toast組件
模塊化詳                           form組件詳                            loading 組件
數據綁定
                           input 組件                             navigator 組件
View組件                          picker組件                             audio 組件
scroll-view組件                 radio組件                              video組件
swiper組件                        slider組件                              Image組件

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 阆中市| 长葛市| 江陵县| 宿州市| 松阳县| 正宁县| 新巴尔虎右旗| 精河县| 泌阳县| 金川县| 札达县| 浙江省| 当涂县| 鸡西市| 聂拉木县| 巴中市| 天柱县| 惠州市| 东城区| 阿瓦提县| 兴安县| 石家庄市| 区。| 吉安县| 克山县| 胶州市| 乡城县| 崇州市| 稻城县| 石门县| 山阳县| 抚宁县| 西丰县| 平遥县| 仁化县| 苍南县| 来宾市| 千阳县| 根河市| 富裕县| 晋城|