Home  >  Article  >  Backend Development  >  php的AJAX返回值开头是<meta http-equiv=Content-导致解析异常

php的AJAX返回值开头是<meta http-equiv=Content-导致解析异常

WBOY
WBOYOriginal
2016-06-13 12:22:251073browse

php的AJAX返回值开头是php的AJAX返回值开头是

然后导致解析错误,无法解析,正常应该没有上面这个meta头部,何解啊?

提示解析错误:


收到的AJAX的返回值:

------解决思路----------------------
你的php页面写了HTML代码吧,把那句改成 header("content-type:text/html;charset=utf-8"); 试试。

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