将var msgCache=new ActiveXObject("MSXML2.DOMDocument.5.0")
修改为:
var msgCache;
var arrSignatures = ["MSXML2.DOMDocument.5.0", "MSXML2.DOMDocument.4.0",
"MSXML2.DOMDocument.3.0", "MSXML2.DOMDocument",
"Microsoft.XmlDom"];
for (var i=0; i < arrSignatures.length; i++) {
try {
msgCache= new ActiveXObject(arrSignatures[i]);
} catch (oError) {
//ignore
}
}