在用Jquery的Ajax时发现一个问题,就是当我发出一系列异步的Ajax请求时,就会抛出如题所述的异常。给人的直观感觉就是多个请求公用一个Ajax对象而导致的一种冲突,可能这个比方不是很恰当。最后我是如何解决的呢?
之前我用的是jquery1.3.2,后来我在Jquery官网上down了一个最新的版本Jquery1.4.2.换上去一用居然okay了,由此猜测,这可能就是1.3版本的一个bug。希望对你有所帮助。
I got an issue when I use ajax to make a serial asynchronized call. it will generate the exception like the subject. my feeling is that the conflict result from more multiple request share one ajax object, that is just my guess. my solution is:
To download the latest version 1.4.2 instead of 1.3.2. it is okay after this change, my guess is that the issue is a bug from Jquery 1.3.2. hope this can help you, thanks!
if any problem or suggestion, please let me know.
本Blog文章除特别声明之外皆为原创文章,欢迎转载,转载请注明: 转载自JSSAY'S BLOG
本文链接地址: http://www.jssay.com/blog/index.php/2010/05/18/xhr-readystate-is-null-or-not-a-object/