diff options
author | Peter Bengtsson <mail@peterbe.com> | 2020-12-08 14:40:17 -0500 |
---|---|---|
committer | Peter Bengtsson <mail@peterbe.com> | 2020-12-08 14:40:17 -0500 |
commit | 33058f2b292b3a581333bdfb21b8f671898c5060 (patch) | |
tree | 51c3e392513ec574331b2d3f85c394445ea803c6 /files/zh-cn/web/api/plugin | |
parent | 8b66d724f7caf0157093fb09cfec8fbd0c6ad50a (diff) | |
download | translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.gz translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.bz2 translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.zip |
initial commit
Diffstat (limited to 'files/zh-cn/web/api/plugin')
-rw-r--r-- | files/zh-cn/web/api/plugin/index.html | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/files/zh-cn/web/api/plugin/index.html b/files/zh-cn/web/api/plugin/index.html new file mode 100644 index 0000000000..5d2695cf66 --- /dev/null +++ b/files/zh-cn/web/api/plugin/index.html @@ -0,0 +1,65 @@ +--- +title: Plugin +slug: Web/API/Plugin +tags: + - 插件 +translation_of: Web/API/Plugin +--- +<div class="warning"> +<p><strong>已废弃</strong><br> + 该特性已经从 HTML5.2 标准中删除,虽然一些浏览器目前仍然支持它,但也许会在未来的某个时间停止支持,请尽量不要使用该特性。</p> +</div> + +<div>{{ApiRef("HTML DOM")}}</div> + +<p>插件接口提供有关浏览器<a href="/en-US/docs/Mozilla/Add-ons/Plugins">插件</a>的信息 .</p> + +<div class="note"> +<p><strong>注:在最新版本的浏览器中插件对象本身的属性不可枚举。</strong></p> +</div> + +<h2 id="Properties" name="Properties">属性</h2> + +<table class="standard-table"> + <tbody> + <tr> + <th>名称</th> + <th>描述</th> + <th>返回值类型</th> + <th>兼容性</th> + </tr> + <tr> + <td>{{domxref("Plugin.description")}}</td> + <td>一个人类可读的插件描述。 <strong> 只读.</strong></td> + <td>{{domxref("DOMString")}}</td> + <td>DOM 0</td> + </tr> + <tr> + <td>{{domxref("Plugin.filename")}}</td> + <td>插件文件名. <strong>只读.</strong></td> + <td>{{domxref("DOMString")}}</td> + <td>DOM 0</td> + </tr> + <tr> + <td>{{domxref("Plugin.name")}}</td> + <td>插件名. <strong>只读.</strong></td> + <td>{{domxref("DOMString")}}</td> + <td>DOM 0</td> + </tr> + <tr> + <td>{{domxref("Plugin.version")}}</td> + <td>插件版本号字符串. <strong>只读.</strong></td> + <td>{{domxref("DOMString")}}</td> + <td>Gecko browsers only (Firefox 4+)</td> + </tr> + </tbody> +</table> + +<h2 id="Methods" name="Methods">方法</h2> + +<dl> + <dt>{{domxref("Plugin.item")}}</dt> + <dd>返回支持的MIME类型的索引号.</dd> + <dt>{{domxref("Plugin.namedItem")}}</dt> + <dd>返回支持的MIME类型.</dd> +</dl> |