效果图:
代码:
wx.showLoading({ title: '加载中...', }) wx.request({ url: '', success(res){}, fail(){}, complete(){ wx.hideLoading() } })
小程序官方api https://developers.weixin.qq.com/miniprogram/dev/api/wx.showLoading.html