JS 判断浏览器是否安装Flash 兼容IE、firefox
/** * @Author: HTL * @Email: Huangyuan413026@163.com * @DateTime: 2016-06-02 11:37:05 * @Description: 是否安装了Flash插件 * @Source: http://blog.csdn.net/tong_xinglong/article/details/7345419 */ function has_flash(){ var isIE = !-[1,]; if(isIE){ try{ return !!new ActiveXObject('ShockwaveFlash.ShockwaveFlash'); } catch(e){ } } else { try{ return !!navigator.plugins['Shockwave Flash']; } catch(e){ } } return false; }