微信小程序延时跳转跳转

124 阅读1分钟

1、跳转需要用setTimeOut 写入到 showToast 的成功回调中 2、hideloading()会将 Toast 同步关闭需要在请求的hideloading 中加入 noConflict 配置为true

功能描述

隐藏 loading 提示框

参数

Object object

属性类型默认值必填说明最低版本
noConflictbooleanfalse目前 toast 和 loading 相关接口可以相互混用,此参数可用于取消混用特性
successfunction接口调用成功的回调函数
failfunction接口调用失败的回调函数
completefunction接口调用结束的回调函数(调用成功、失败都会执行)