showToast 和 showLoading 是底层同一个(按的小程序的设计),所以 .showToast 和 showLoading 会相互覆盖,而 hideLoading 也会关闭 showToast 。
冲突解决方案:
App:使用 plus.nativeUI.toast
解决小程序中showToast与showLoading冲突的策略
本文探讨了小程序开发中常见的Toast提示与Loading加载效果冲突问题,推荐使用plus.nativeUI.toast API,并介绍了如何避免showToast和showLoading的覆盖。
showToast 和 showLoading 是底层同一个(按的小程序的设计),所以 .showToast 和 showLoading 会相互覆盖,而 hideLoading 也会关闭 showToast 。
冲突解决方案:
App:使用 plus.nativeUI.toast
393

被折叠的 条评论
为什么被折叠?