标签:插件 catch activex name asp asi navigator ret function
function hasPlugin(name) {
name = name.toLowerCase();
for(var i=0; i<navigator.plugins.length; i++) {
if(navigator.plugins[i].name.toLowerCase().indexOf(name)>-1) {
return true;
}
}
return false;
}
IE中
function hasIEPlugin(name) {
try{
new ActiveXObject(name);
return true;
}catch(e){
return false;
}
}
标签:插件 catch activex name asp asi navigator ret function
原文地址:https://www.cnblogs.com/TNTS/p/10113883.html