描述:
Installed = clientCaps.isComponentInstalled("{99560E1D-E17E-44b5-90E4-5DE25BF6F7B2}", "componentID");
if (!Installed)
{
var obj;
try{
obj = new ActiveXObject("myObj.CLinkParser");
}
catch(e){
}
if (null!=obj)
{
Installed = true ;
}
}
我做了一个软件,想在页面上判断是否安装。查了一下资料可以用ClientCaps.isComponentInstalled实现,微软文档上说,必须是ie的主件才可以(Only Microsoft Internet Explorer components are detected by this method)。其实我的软件也有com接口myObj.CLinkParser 。isComponentInstalled判断总是失败,new ActiveXObject("myObj.CLinkParser"),总是弹出安全对话框。我下了一个人家的软件,通用的方法isComponentInstalled和new ActiveXObject("myObj.CLinkParser")的判断都可以,请问什么叫,我该如何解决这个问题?谢谢
解决方案1:
帮你Up一下