Notification.image

备注: 此特性在 Web Worker 中可用

安全上下文: 此项功能仅在一些支持的浏览器安全上下文(HTTPS)中可用。

imageNotification 接口的只读属性,包含了需要显示在通知信息里的图片的 URL,可通过Notification()构造函数的 image 选项指定。

语法

var image = Notification.image;

规范

Specification
Notifications API Standard
# image-resource

浏览器兼容性

BCD tables only load in the browser

参见