ajax 12301 原因小结
??? 很多同學在web ajax時遇到 status 12301 的錯誤,誤以為是jQuery的錯誤。 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.”
??? 經過個人試驗,可能由以下幾個因素引起:
??? 1.文件編碼不一致:
??????? 1.1 web頁面編碼與js文件編碼不一致
??????? 1.2 web母版頁與web頁在編碼不一致?
??????? 1.3 頁面html meta 指定的編碼與web頁在編碼不一致
??? 2.ajax請求的路徑為中文
??? 3.頁面載入時多個并行的 post ajax
????以上想法僅供朋友們參考。
?
轉載于:https://www.cnblogs.com/donhwa/archive/2013/03/29/2989699.html
總結
以上是生活随笔為你收集整理的ajax 12301 原因小结的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 利用百度开发者中心的api实现地图及周边
- 下一篇: Poj2449 Remmarguts'