Notification.image

Note: 此特性在 Web Worker 中可用。

Secure context
This feature is available only in secure contexts (HTTPS), in some or all supporting browsers.

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

语法

var image = Notification.image;

USVString

规范

规范 状态 备注
Notifications API
image
Living Standard Living standard

浏览器兼容性

Update compatibility data on GitHub
DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
imageChrome Full support 53Edge Full support 18Firefox No support NoIE No support NoOpera Full support 40Safari ? WebView Android No support NoChrome Android Full support 53Firefox Android No support NoOpera Android Full support 41Safari iOS No support NoSamsung Internet Android Full support Yes

Legend

Full support  
Full support
No support  
No support
Compatibility unknown  
Compatibility unknown

参见