最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - How to hide notification when new one comes up with toastr - Stack Overflow

programmeradmin1浏览0评论

I have notifications popping up in my application, I want when new notification es, the old one to hide (I don't want two notifications to show at the same time).

How to get that effect with toastr?

I have notifications popping up in my application, I want when new notification es, the old one to hide (I don't want two notifications to show at the same time).

How to get that effect with toastr?

Share Improve this question edited Dec 7, 2016 at 9:48 gonsalu 3,1942 gold badges19 silver badges19 bronze badges asked Dec 6, 2016 at 18:24 V.DimitrovV.Dimitrov 1091 silver badge5 bronze badges
Add a ment  | 

1 Answer 1

Reset to default 8

You could use the clear function :

toastr.clear();

Hope this will helps you.

Source : officiel documentation.

发布评论

评论列表(0)

  1. 暂无评论