我们使用一个 XMLHttpRequest 模型对象来测试我们的 ExtJs 4.1 应用程序与 Jasmine。现在,一切都在 Chrome 和 Firefox 中完美运行,但 IE 版本 7 到 9 一如既往地出现问题。
onreadystatechange函数有错误,
if readyStateis 1then SCRIPT575(由于错误而无法继续c00c023f)
if readyStateis 2then SCRIPT10(所需数据尚不可用)
看到这个Jsfiddle(搜索“错误”跳转到行)
此外,还有一个错误TypeError: Object expected。
我读过的:
注意:
在 Chrome 和 Firefox 中,所有请求都只返回readyState 4,但在 IEreadyState中,值从 1 到 4 重复(?)。
Chrome & FF
readyState 4 => OK
readyState 4 => OK
readyState 4 => OK
readyState 4 => OK
readyState 4 => OK
...
IE:
readyState 1 => error
readyState 2 => error
readyState 3 => OK
readyState 4 => OK
readyState 1 => error
...
你能指导我如何解决这个问题吗?我没有线索。