我在 Chrome 中出现此错误“未捕获的 ReferenceError:未定义 ActiveXObject”
我的代码是
function loadModel() {
//----------------------------------------------------------------------------------------------
document.getElementById("lModelMsg").innerText = "Loading...";
document.getElementById("lPartMsg").innerText = "";
var dMfg = document.getElementById("dManufacturer");
var id = dMfg.options[dMfg.selectedIndex].value;
var xml = CreateAsset.LoadModel(id);
var xmlDoc = new ActiveXObject("Microsoft.XMLDOM");
var Flag;
Flag = xmlDoc.loadXML(xml.value);
if (Flag) {......................