微信小程序wx.showLoading

效果图:

代码:

wx.showLoading({
      title: '加载中...',
})
wx.request({
  url: '',
  success(res){},
  fail(){},
  complete(){
    wx.hideLoading()
  }
})

小程序官方api   https://developers.weixin.qq.com/miniprogram/dev/api/wx.showLoading.html

猜你喜欢

转载自www.cnblogs.com/520BigBear/p/10394526.html