问题:使用dhtmlxtree插件在IE9浏览器出现以下异常:
SCRIPT438: 对象不支持“load”属性或方法
dhtmlxcommon.js, 行24 字符226
解决方案:
修改dhtmlxtree插件源码dhtmlxcommon.js,将报错行代码修改为:
if (document.implementation && document.implementation.createDocument) {
/*
this.xmlDoc = document.implementation.createDocument("", "", null);
this.xmlDoc.onload = new this.waitLoadFunction(this);
this.xmlDoc.load(filePath);
return
*/
//解决IE9 load无法加载问题
this.xmlDoc=new ActiveXObject("Microsoft.XMLHTTP");
}