zoukankan      html  css  js  c++  java
  • javascript判断用户浏览器插件安装情况

    示例代码如下:

    document.writeln("<TABLE BORDER=1><TR VALIGN=TOP>",
       "<TH ALIGN=left>i",
       "<TH ALIGN=left>名称",
       "<TH ALIGN=left>文件名",
       "<TH ALIGN=left>描述",
       "<TH ALIGN=left>类型数</TR>")
    for (i=0; i < navigator.plugins.length; i++) {
       document.writeln("<TR VALIGN=TOP><TD>",i,
          "<TD>",navigator.plugins[i].name,
          "<TD>",navigator.plugins[i].filename,
          "<TD>",navigator.plugins[i].description,
          "<TD>",navigator.plugins[i].length,
          "</TR>")
    }
    document.writeln("</TABLE>");
    

    关于plugins对象的详细说明,可以查看这篇文章

    http://learn.tsinghua.edu.cn:8080/2005310285/javascript_ref/brow1.htm#1013016 

    目前只发现在firefox下有效果,ie下正在研究。

    关于检测ie下安装插件的问题,先暂时查看下这篇文章吧。

    http://hi.baidu.com/sodarfish/blog/item/541b7f11856f7e15b8127bc1.html

  • 相关阅读:
    realsense d435i qt 测试
    realsense d435i 数据 测试
    realsense d435i测试
    ubuntu torch GPU yolov5
    IfcLayeredItem
    ubuntu大服务器 pytorch环境配置
    condarc内容
    realsense point cloud
    yolov5 环境配置
    pip error
  • 原文地址:https://www.cnblogs.com/shaojun/p/1923143.html
Copyright © 2011-2022 走看看