ajax 12301 原因小结
??? 很多同學(xué)在web ajax時(shí)遇到 status 12301 的錯(cuò)誤,誤以為是jQuery的錯(cuò)誤。 jQuery 官方給出的解釋是“
As you mentioned,error 12031 is coming from the Winsock stack and means "connection reset".If you have any third-party toolbars or firewall software you should probably remove them.But again,the jQuery bug tracker is not an ideal place to troubleshoot a general problem like this.”
??? 經(jīng)過(guò)個(gè)人試驗(yàn),可能由以下幾個(gè)因素引起:
??? 1.文件編碼不一致:
??????? 1.1 web頁(yè)面編碼與js文件編碼不一致
??????? 1.2 web母版頁(yè)與web頁(yè)在編碼不一致?
??????? 1.3 頁(yè)面html meta 指定的編碼與web頁(yè)在編碼不一致
??? 2.ajax請(qǐng)求的路徑為中文
??? 3.頁(yè)面載入時(shí)多個(gè)并行的 post ajax
????以上想法僅供朋友們參考。
?
轉(zhuǎn)載于:https://www.cnblogs.com/donhwa/archive/2013/03/29/2989699.html
總結(jié)
以上是生活随笔為你收集整理的ajax 12301 原因小结的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: 利用百度开发者中心的api实现地图及周边
- 下一篇: 荣升冰箱售后电话