wxapp 操作フィードバック メッセージ プロンプト ボックス: 読み込み中


注:

はまもなく非推奨になります。API を使用してくださいwx.showToast


メッセージプロンプトボックス

QQ截图20170208103821.png

サンプルコード:

<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);
    }
})