Home  >  Article  >  Backend Development  >  SCRIPT7002: XMLHttpRequest: 网络错误 0x2ef3,

SCRIPT7002: XMLHttpRequest: 网络错误 0x2ef3,

WBOY
WBOYOriginal
2016-06-23 13:50:181740browse

做了一个网页,用jquery ajax 方法访问后台,后台操作及数据处理都执行了,但是ajax回调函数不执行,也没有进error,浏览器爆出错误:
SCRIPT7002: XMLHttpRequest: 网络错误 0x2ef3, 由于出现错误 00002ef3 而导致此项操作无法完成。
我该怎么办?


回复讨论(解决方案)

解决了,原来是php.int中error_reporting设置的问题,由于php版本的问题使用arr[field]的时候如果arr中没有field属性,php会警告:Notice:undifined index : field,导致前台请求没有进success回调函数。
将error_reporting 设置为E_ALL & ~E_NOTICE即可

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn