请问大神,小程序可不可以判断是否有wx.showLoading打开,然后选择使用wx.hideLoading,如果没有wx.showLoading就不使用wx.hideLoading,相关代码是什么样的呢???