javascript - 在 Javascript 中几秒钟后关闭 toastr.error
问题描述
toastr.error('Testing pop-up')
当应用程序出现错误时,我使用Javascript向我显示一个弹出窗口,但我在官方文档中看不到如何在 X 秒后自动关闭此弹出窗口而不按任何按钮。有谁知道怎么做?
解决方案
推荐阅读
- node.js - 将事件中的自定义维度发送到 Google Analytics
- php - 如何通过ajax将id从url参数传递到另一个页面
- javascript - $(...).sideNav 不是函数
- c++ - 完美地将 STL 容器转发到模板类
- python - Python 中的类、继承和方法/函数
- visual-studio - Angular 代码 VS 中的类型“{}”上不存在 ts 属性推送
- flutter - 在颤动中带有渐变边框的轮廓透明按钮
- java - 即使字符串的内容相同,.equals 方法也会返回 false
- django - 如何在 django 中序列化 select_related 查询的结果
- c# - 如何使用 DbContext 进行原始 sql 查询(每个请求一个连接)?