MimeType

实验性: 这是一项实验性技术
在将其用于生产之前,请仔细检查浏览器兼容性表格

MimeType 接口提供了包含以下信息 MIME 与特定插件关联的类型。NavigatorPlugins.mimeTypes 返回此对象的数组。

属性

MimeType.type

返回关联的插件的 MIME 类型。

MimeType.description

如果没有返回相关插件或空字符串的描述。

MimeType.suffixes

包含插件,所显示的数据的有效文件扩展名的字符串或空字符串,如果扩展名为特定的模块无效。例如,浏览器内容解密模块可能出现在插件列表中,但支持更多文件 extenions 比可以预期。因此,它可能会返回一个空字符串。

MimeType.enabledPlugin

返回一个 Plugin 实例,其包含插件本身的信息。

规范

Specification
HTML
# mimetype

浏览器的兼容性

Report problems with this compatibility data on GitHub
desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
MimeType
Deprecated
description
Deprecated
enabledPlugin
Deprecated
suffixes
Deprecated
type
Deprecated

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support
Deprecated. Not for use in new websites.