Activex可以在Linux下用吗
1个回答
展开全部
与浏览器关
比Firefox:
document.implementation.createDocument( " ", " ",null);
给创建函数:
function XmlDom(){
if(window.ActiveXObject){
var arrSignatures=new Array(5);
arrSignatures[0]= "MSXML2.DOMDocument.5.0 ";
arrSignatures[1]= "MSXML2.DOMDocument.4.0 ";
arrSignatures[2]= "MSXML2.DOMDocument.3.0 ";
arrSignatures[3]= "MSXML2.DOMDocument ";
arrSignatures[4]= "Microsoft.XmlDom ";
for(var x=0;x <arrSignatures.length;x++){
try{ return new ActiveXObject(arrSignatures[x]);}
catch(oError){/*ignore*/}
}
throw new Error( "MSXML is not installed on your system. ");
}
else if(document.implementation && document.implementation.createDocument) return document.implementation.createDocument( " ", " ",null);
else throw new Error( "Your browser doesn 't support an XML DOM object. ");
}
比Firefox:
document.implementation.createDocument( " ", " ",null);
给创建函数:
function XmlDom(){
if(window.ActiveXObject){
var arrSignatures=new Array(5);
arrSignatures[0]= "MSXML2.DOMDocument.5.0 ";
arrSignatures[1]= "MSXML2.DOMDocument.4.0 ";
arrSignatures[2]= "MSXML2.DOMDocument.3.0 ";
arrSignatures[3]= "MSXML2.DOMDocument ";
arrSignatures[4]= "Microsoft.XmlDom ";
for(var x=0;x <arrSignatures.length;x++){
try{ return new ActiveXObject(arrSignatures[x]);}
catch(oError){/*ignore*/}
}
throw new Error( "MSXML is not installed on your system. ");
}
else if(document.implementation && document.implementation.createDocument) return document.implementation.createDocument( " ", " ",null);
else throw new Error( "Your browser doesn 't support an XML DOM object. ");
}
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询