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

注意:

即将废弃,请使用 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);
    }
})
版权声明:本文由lzhuji.com主机评测所有
文章名称:《wxapp操作反馈消息提示框:loading》
文章链接:https://www.lzhuji.com/270618.html
本站资源仅供个人学习交流,请于下载后24小时内删除,不允许用于商业用途,否则法律问题自行承担。

本站不对信息的真伪做任何的保障,请自行甄别,自负责任。

登录

找回密码

注册