Notification: actions 屬性
注意:此功能在 Web Workers 中可用。
Notification 介面的只讀屬性 actions 提供了供使用者選擇的、用於與通知進行互動的操作。
這些操作是透過 ServiceWorkerRegistration.showNotification() 方法和 Notification() 建構函式的第二個引數中的 actions 選項來設定的。
注意: 瀏覽器通常會限制它們為特定通知顯示的最多運算元量。請查閱靜態的 Notification.maxActions 屬性來確定這個限制。