【问题标题】:Web Notifications API - Is there a way to close all displayed notificationsWeb Notifications API - 有没有办法关闭所有显示的通知
【发布时间】:2012-02-01 18:43:52
【问题描述】:

使用 Web Notifications API,该应用最终可以显示 5 个以上的通知。通知不会自动关闭。有没有一种方法可以关闭所有打开的桌面通知?

谢谢

【问题讨论】:

    标签: google-chrome webkit notifications


    【解决方案1】:

    您可以在通知变量上调用.cancel() 处理程序

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-05-20
      • 1970-01-01
      • 2020-08-19
      • 2023-04-11
      • 1970-01-01
      • 2015-11-30
      • 1970-01-01
      • 2020-08-05
      相关资源
      最近更新 更多