gpt4 book ai didi

javascript - 如何在新的 toastr 出现时隐藏通知

转载 作者:行者123 更新时间:2023-11-29 19:08:23 26 4
gpt4 key购买 nike

我的应用程序中弹出通知,我希望在新通知出现时隐藏旧通知(我不希望同时显示两个通知)。

如何使用 toastr 获得这种效果?

最佳答案

您可以使用 clear 函数:

toastr.clear();

希望对您有所帮助。

来源: officiel documentation .

关于javascript - 如何在新的 toastr 出现时隐藏通知,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41002273/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com