Notification: actions 属性
注意:此功能在 Web Workers 中可用。
Notification 接口的只读属性 actions 提供了供用户选择的、用于与通知进行交互的操作。
这些操作是通过 ServiceWorkerRegistration.showNotification() 方法和 Notification() 构造函数的第二个参数中的 actions 选项来设置的。
注意: 浏览器通常会限制它们为特定通知显示的最多操作数量。请查阅静态的 Notification.maxActions 属性来确定这个限制。