Dokumentasi pembangunan applet WeChat
/ wxapp操作反饋消息提示框:loading
wxapp操作反饋消息提示框:loading
注意:
即將廢棄,請(qǐng)使用 API wx.showToast
消息提示框
示例代碼:
<view class="body-view"> <loading hidden="{{hidden}}"> 加載中... </loading> <button type="default" bindtap="loadingTap">點(diǎn)擊彈出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); } })