wxapp操作反馈消息提示框:loading

2018-12-07 16:28 更新
注意:

即将废弃,请使用 API wx.showToast

loading


​消息提示框

属性名 类型 默认值 说明
hidden Boolean false 是否隐藏

示例代码:

<view class="body-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);
    }
})
以上内容是否对您有帮助:
在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号