diff options
Diffstat (limited to 'files/zh-cn/web/api/navigatorplugins/测试滕盖/index.html')
-rw-r--r-- | files/zh-cn/web/api/navigatorplugins/测试滕盖/index.html | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/files/zh-cn/web/api/navigatorplugins/测试滕盖/index.html b/files/zh-cn/web/api/navigatorplugins/测试滕盖/index.html deleted file mode 100644 index 3f9c09d768..0000000000 --- a/files/zh-cn/web/api/navigatorplugins/测试滕盖/index.html +++ /dev/null @@ -1,38 +0,0 @@ ---- -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> |