27-3c.js

来自「java应用代码和章节代码。各种功能实现效果。很值」· JavaScript 代码 · 共 19 行

JS
19
字号
// Pass "<type>/<subtype>" and plug-in name strings for this
// function to see if both the MIME type and plug-in are
// registered with this browser, and that the plug-in is
// enabled for the desired MIME type.
function mimeAndPluginReady(mime_type,plug_in) {
 if (mimeIsReady(mime_type)) {
  var plugInOfRecord = navigator.mimeTypes[mime_type].enabledPlugin;
  plug_in = plug_in.toLowerCase();
  for (var i = 0; i < navigator.plugins.length; i++) {
   if (navigator.plugins[i].name.toLowerCase().indexOf(plug_in) != -1) {
    if (navigator.plugins[i] == plugInOfRecord) {
     return true;
    }
   }
  }
 }
 return false;
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?