1 for (var i = 0, len = navigator.plugins.length; i < len; i++) { 2 var plugin = navigator.plugins[i]; 3 4 if (plugin.name == 'Shockwave Flash') { 5 if (plugin.filename == 'internal-not-yet-present') { 6 commFunc.confirm("您当前浏览器flash插件版本较低,可能无法使用系统中导出Excel功能,现在去升级?", function () { 7 window.open('https://get2.adobe.com/cn/flashplayer/otherversions/'); 8 }); 9 } 10 break; 11 } 12 }