微信小程序wx.showToast一闪而过
是因为我在发送数据的时候,再api里面用到了
wx.showLoading({
title: '加载中...',
mask: true,
});
微信的
wx.hideLoading();
wx.hideLoading()会关闭同级中的wx.showLoading 或 wx.showToast
所以要在showToast之前调用wx.hideLoading,

我的代码是因为我在complete里面关闭了wx.hideLoading()影响到了wx.showLoading的展示