JS read XML files in firefox
I searched the method of "JS reading XML files in firefox" online for a long time, and many of them were asked and no one answered. I saw a bunch of programmers complaining about firefox: "There is no benefit except to exhaust programmers." I got back to the point. Firefox does not support ActiveXObject objects in ie. To get an XML DOM, there are two methods:
1、("", "", null);
2、
Example: 1、var dom=("", "", null);
=false;
("");//dom is an XML object.
2、var oXmlHttp = new XMLHttpRequest() ;
( "GET", "", false ) ;
(null) ;
//It's the xml object.
I searched the method of "JS reading XML files in firefox" online for a long time, and many of them were asked and no one answered. I saw a bunch of programmers complaining about firefox: "There is no benefit except to exhaust programmers." I got back to the point. Firefox does not support ActiveXObject objects in ie. To get an XML DOM, there are two methods:
1、("", "", null);
2、
Example: 1、var dom=("", "", null);
=false;
("");//dom is an XML object.
2、var oXmlHttp = new XMLHttpRequest() ;
( "GET", "", false ) ;
(null) ;
//It's the xml object.