SCRIPT7002: XMLHttpRequest: 网络错误 0x2ef3,

WBOY
Release: 2016-06-23 13:50:18
Original
1790 people have browsed it

做了一个网页,用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即可

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template