[php]三级省联php为什么不支持火狐帮我调一下啊

2025-03-12 15:13:46
推荐回答(2个)
回答1:

xmlDoc=new ActiveXObject("Microsoft.XMLDOM");
你首先指定了使用微软的xmldom解释器,跟ff就没有关系,你可以这样写:
var xmlDoc;
try {
xmlDoc=new ActiveXObject("Microsoft.XMLDOM");

} catche(e) {
xmlDoc=document.implementation.createDocument("","",null);
}
xmlDoc.async=false;
xmlDoc.load("Area.xml");

回答2:

  您好!很高兴为您答疑!

  您使用了xmldom解释器可以这样写:
var xmlDoc;
try {
xmlDoc=new ActiveXObject("Microsoft.XMLDOM");

} catche(e) {
xmlDoc=document.implementation.createDocument("","",null);
}
xmlDoc.async=false;
xmlDoc.load("Area.xml");
  您可以在火狐社区了解更多内容。希望我的回答对您有所帮助,如有疑问,欢迎继续在本平台咨询。