有没有适用于所有主流浏览器的通知系统?我知道 chrome 有他们的 Notification API,Safari 有推送通知,IE 有固定网站,但是有没有更通用的方式来显示通知?我确实找到了 https://github.com/ttsvetko/HTML5-Desktop-Notifications它结合使用了不同的通知(尽管我似乎仍然无法在 IE 中运行该演示)。
最佳答案
Are there any sort of notification system that works with all major browsers?
机制https://notifications.spec.whatwg.org/ defines 是 Web 应用程序的唯一标准通知系统,旨在在所有浏览器中以相同的方式工作。当前所有主要浏览器都支持它:Firefox、Safari、Chrome 和所有其他基于 Chrome 的浏览器。
https://developer.mozilla.org/docs/Web/API/Notifications_API/Using_the_Notifications_API
关于javascript - 跨所有浏览器的通知,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31684804/