aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/orphaned/web/api/navigatorplugins/测试滕盖/index.html
diff options
context:
space:
mode:
authorFlorian Merz <me@fiji-flo.de>2021-02-11 12:56:40 +0100
committerFlorian Merz <me@fiji-flo.de>2021-02-11 12:56:40 +0100
commit310fd066e91f454b990372ffa30e803cc8120975 (patch)
treed5d900deb656a5da18e0b60d00f0db73f3a2e88e /files/zh-cn/orphaned/web/api/navigatorplugins/测试滕盖/index.html
parent8260a606c143e6b55a467edf017a56bdcd6cba7e (diff)
downloadtranslated-content-310fd066e91f454b990372ffa30e803cc8120975.tar.gz
translated-content-310fd066e91f454b990372ffa30e803cc8120975.tar.bz2
translated-content-310fd066e91f454b990372ffa30e803cc8120975.zip
unslug zh-cn: move
Diffstat (limited to 'files/zh-cn/orphaned/web/api/navigatorplugins/测试滕盖/index.html')
-rw-r--r--files/zh-cn/orphaned/web/api/navigatorplugins/测试滕盖/index.html38
1 files changed, 38 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..3f9c09d768
--- /dev/null
+++ b/files/zh-cn/orphaned/web/api/navigatorplugins/测试滕盖/index.html
@@ -0,0 +1,38 @@
+---
+title: 测试滕盖
+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>