jQuery.ajax解决方案无法在Chrome 360速度模式下正常运行
解决jQuery.ajax在IE, FireFox可以正常执行。chrome_6494_1.html' target='_blank'>Chrome,360极速模式中无法正常执行。 今天遇到问题,
顺晟科技
2021-08-28 09:43:23
31
解决方案jQuery.ajax在ie中正确运行Firefox。chrome _ 6494 _ 1 . html ' target=' _ blank ' chrome,无法在360速度模式下正常运行。
今天出了问题,已经工作半天了,总结一下吧。
发现:http://forum . jquery.com/topic/load-and-Ajax-not-working-on-Google-chrome
Using jQuery
里面人说的原文如下。
Please look at this page:
http://www . mail-archive.com/qoox doo-devel @ lists . SourceForge . net/msg 29542 . html
when you are getting Ajax content from a server ASP。NET page,beware on using the response . close()at end。
this would send all buffered data to client,but also send a ' reset by peer ' signal that close the socket .
Ie/ff just handle it well,but chrome can 0 thandle this,returning an internal network error 101 on xhr . send()。
if you dont use response . close()on your server code,$。Ajax will work just fine also on chrome。
Hope this helps。
大致如下。
ASP。在NET服务器上使用AJAX导入内容时,请使用Response .使用Close()慎重结束。
这样会将所有缓冲的数据发送到客户端,并发送“Resetby peer”信号,从而关闭套接字连接。
IE/FF处理得很好,但Chrome处理不了。“xhr。当您执行Send()方法来汇入资料时.返回“an internal Network Error 101”错误。
在服务器端代码中,输入“Response .如果不使用close()“$ .Ajax在chrome浏览器中运行良好。
希望这对你有帮助。
一开始我认为不是服务器端的问题,而是浏览器支持Ajax的问题,后台代码中有Response .已使用Close()。
还有“dont use”。我没有使用这句话,工作了半天,认为Ajax是跨域问题。(注:Dont Use、Dont Use、Dont Use、Dont Use、Dont Use)
我使用新的服务,在主角下建立了虚拟目录。我也不是跨领域问题。真是无语。
后来不得不,在后台代码中尝试删除一行可能成为问题的语句,最终Response。删除Close()这个句子就可以了。
28
2021-08
16
2021-06
16
2021-06
16
2019-08
16
2019-08