aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/orphaned/web/api/navigatorplugins/测试滕盖
diff options
context:
space:
mode:
Diffstat (limited to 'files/zh-cn/orphaned/web/api/navigatorplugins/测试滕盖')
-rw-r--r--files/zh-cn/orphaned/web/api/navigatorplugins/测试滕盖/index.html39
1 files changed, 39 insertions, 0 deletions
diff --git a/files/zh-cn/orphaned/web/api/navigatorplugins/测试滕盖/index.html b/files/zh-cn/orphaned/web/api/navigatorplugins/测试滕盖/index.html
new file mode 100644
index 0000000000..7033c46107
--- /dev/null
+++ b/files/zh-cn/orphaned/web/api/navigatorplugins/测试滕盖/index.html
@@ -0,0 +1,39 @@
+---
+title: 测试滕盖
+slug: orphaned/Web/API/NavigatorPlugins/测试滕盖
+original_slug: Web/API/NavigatorPlugins/测试滕盖
+---
+<div>{{ ApiRef("HTML DOM") }}</div>
+
+<div> </div>
+
+<h2 id="Summary" name="Summary">Summary</h2>
+
+<p>Returns a {{domxref("MimeTypeArray")}} object, which contains a list of {{domxref("MimeType")}} objects representing the MIME types recognized by the browser.</p>
+
+<h2 id="Syntax" name="Syntax">Syntax</h2>
+
+<pre class="syntaxbox"><var>mimeTypes</var> = navigator.mimeTypes;
+</pre>
+
+<p><code>mimeTypes</code> is a <code>MimeTypeArray</code> object which has a <code>length</code> property as well as <code>item(index)</code> and <code>namedItem(name)</code> methods.</p>
+
+<h2 id="Example" name="Example">Example</h2>
+
+<pre class="brush:js">function isJavaPresent() {
+ return 'application/x-java-applet' in navigator.mimeTypes;
+}
+
+function getJavaPluginDescription() {
+ var mimetype = navigator.mimeTypes['application/x-java-applet'];
+ if (mimetype === undefined) {
+ // no Java plugin present
+ return undefined;
+ }
+ return mimetype.enabledPlugin.description;
+}
+</pre>
+
+<h2 id="Specification" name="Specification">Specification</h2>
+
+<p><em>This is not part of any specification.</em></p>