var ref = document.createElement("script");
ref.setAttribute("type", "text/javascript");
ref.setAttribute("src", file);
ref.onload = ref.onreadystatechange = function() {
if ((!this.readyState || this.readyState == "loaded" || this.readyState == "complete")) {
_this.onLoad(modPro, callback);
}
};
ref.onerror = function() {//  onerror只支持firefox
_this.onLoadError(modPro, callback);
};
_this.head.appendChild(ref);
IE下用上面这种方式加载js,如果断网或者文件不存在,任然是 this.readyState == 'load', 怎么样能判断他加载失败?