zoukankan      html  css  js  c++  java
  • 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

        以上想法仅供朋友们参考。

  • 相关阅读:
    TCP报文
    TCP概述
    UDP
    传输层概述
    端口地址转换 PAT
    网络地址转换NAT原理介绍
    js的时间处理函数
    正则表达式相关笔记
    微信小程序实现图片拖拽
    在React中使用less
  • 原文地址:https://www.cnblogs.com/donhwa/p/2989699.html
Copyright © 2011-2022 走看看