hideToast 1.0.0+

隐藏灰色背景的消息提示框。

提示

loading 的实现基于 toast,所以hideToast也会将 loading 隐藏

输入

无输入

输出

各callback参数均无额外属性

代码示例

  1. tt.hideToast({
  2. success (res) {
  3. console.log(`${res}`);
  4. },
  5. fail (res) {
  6. console.log(`hideToast调用失败`);
  7. }
  8. });

原文: https://developer.toutiao.com/docs/api/hideToast.html