DOM exception 11
DOM exception 11
我通过http://TheScoutApp.com上的控制台运行这段代码,在第3行上,我得到了一个DOM异常11!!
var xhr2 = new XMLHttpRequest();
xhr2.onreadystatechange = function() {
console.error(xhr2.statusText); //DOM exception 11!!!
if (xhr2.readyState === 4 && xhr2.status === 200) {
console.error('xhr2');
}
}
xhr2.open("GET","http://thescoutapp.com/extension/update.xml",true);
xhr2.send();
属性xhr。statusText只能在请求完成后访问。但是onreadystatechange-回调被更早地调用——更早的调用有xhr。readyState==1(=服务器连接建立).
你必须输入xhr的值。条件中的statusText:
if(xhr.readyState == 4) {
console.error(xhr.statusText);
}
相关文章:
- TypeError (null reference exception) when using dom-construc
- PhoneGap iOS + DOM Exception 18
- Javascript: InvalidStateError:DOM Exception 11
- DOM Exception 18 getImageData
- jQuery mobile - DOM Exception 18
- 未捕获的错误:NotFoundError: DOM Exception 8 Chrome扩展
- DOM Exception 11 InvalidStateError with webkitEnterFullscree
- not found error: DOM exception 8
- domToImage代码抛出安全错误(Dom Exception 18)仅在iOS浏览器上
- Phantom.js Webdriver.io Error: SyntaxError: DOM Exception 12
- InvalidStateError: DOM IDBDatabase Exception 11
- 未捕获的错误:INDEX_SIZE_ERR: DOM Exception 1, getImageData
- 未捕获的错误:SECURITY_ERR: DOM Exception 18当在WebGL中应用纹理与Three.js
- Dom Exception 12 in Zepto.js
- NotFoundError: DOM Exception 8
- DOM exception 11
- 未捕获的错误NOT_FOUND_ERR DOM Exception
- Uncaught Error: SecurityError: DOM Exception 18 Canvas
- DOM Exception 12 for window.postMessage
- 未捕获错误:DATA_CLONE_ERR: DOM Exception 25'由网络工作者抛出