这个程序中相比于XML+DOM来说有很多优点,比比就知道
var xslDoc = new ActiveXObject("Microsoft.XMLDOM");
xslDoc.async = false;
xslDoc.load("xsl/teaminfo.xsl");
var xmlDoc = new ActiveXObject("Microsoft.XMLDOM");
xmlDoc.async = false;
xmlDoc.load(xmlHttp.responseXML);
document.getElementById("main").innerHTML = xmlDoc.transformNode(xslDoc);