aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/api/notification/image/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'files/zh-cn/web/api/notification/image/index.html')
-rw-r--r--files/zh-cn/web/api/notification/image/index.html46
1 files changed, 46 insertions, 0 deletions
diff --git a/files/zh-cn/web/api/notification/image/index.html b/files/zh-cn/web/api/notification/image/index.html
new file mode 100644
index 0000000000..9a89fd402b
--- /dev/null
+++ b/files/zh-cn/web/api/notification/image/index.html
@@ -0,0 +1,46 @@
+---
+title: Notification.image
+slug: Web/API/notification/image
+translation_of: Web/API/Notification/image
+---
+<p>{{APIRef("Web Notifications")}}{{AvailableInWorkers}}{{securecontext_header}}</p>
+
+<p><span class="seoSummary"> <code>image</code> 是{{domxref("Notification")}} 接口的只读属性,包含了需要显示在通知信息里的图片的URL,</span>可通过{{domxref("Notification.Notification","Notification()")}}构造函数的 <code>image</code> 选项指定。</p>
+
+<h2 id="Syntax" name="Syntax">语法</h2>
+
+<pre class="syntaxbox">var image = Notification.image;
+</pre>
+
+<h3 id="Return_Value" name="Return_Value">值</h3>
+
+<p>{{domxref("USVString")}}。</p>
+
+<h2 id="规范">规范</h2>
+
+<table class="standard-table">
+ <tbody>
+ <tr>
+ <th scope="col">规范</th>
+ <th scope="col">状态</th>
+ <th scope="col">备注</th>
+ </tr>
+ <tr>
+ <td>{{SpecName('Web Notifications','#image-resource','image')}}</td>
+ <td>{{Spec2('Web Notifications')}}</td>
+ <td>Living standard</td>
+ </tr>
+ </tbody>
+</table>
+
+<h2 id="浏览器兼容性">浏览器兼容性</h2>
+
+
+
+<p>{{Compat("api.Notification.image")}}</p>
+
+<h2 id="参见">参见</h2>
+
+<ul>
+ <li><a href="/en-US/docs/Web/API/Notifications_API/Using_the_Notifications_API">使用Notifications API</a></li>
+</ul>