微信小程序wx.showLoading

Posted 大熊

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了微信小程序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

以上是关于微信小程序wx.showLoading的主要内容,如果未能解决你的问题,请参考以下文章