Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在制作一个播放 Flash 视频的程序。但是,我必须检查他们是否安装了 Internet Explorer(WebBrowser 元素)的 flash。
我怎样才能检查这个?我之前在另一个工具中看到过这个,但我不知道它是如何工作的。:(
试试 javascript
var _flash_installed = ((typeof navigator.plugins != "undefined" && typeof navigator.plugins["Shockwave Flash"] == "object") || (window.ActiveXObject && (new ActiveXObject("ShockwaveFlash.ShockwaveFlash")) != false));