ajax请求返回除了值外还有表格字符串,请问原因?

返回的代码
显示的:
clipboard.png



<font size='1'><table class='xdebug-error' dir='ltr' border='1' cellspacing='0' cellpadding='1'>
<tr><th align='left' bgcolor='#f57900' colspan="5"><span style='background-color: #cc0000; color: #fce94f; font-size: x-large;'>( ! )</span> Warning: imagecolorallocate() expects parameter 1 to be resource, boolean given in D:wampwwwGDhebing.php on line 14</th></tr>
<tr><th align='left' bgcolor='#e9b96e' colspan='5'>Call Stack</th></tr>
<tr><th align='center' bgcolor='#eeeeec'>#</th><th align='left' bgcolor='#eeeeec'>Time</th><th align='left' bgcolor='#eeeeec'>Memory</th><th align='left' bgcolor='#eeeeec'>Function</th><th align='left' bgcolor='#eeeeec'>Location</th></tr>
<tr><td bgcolor='#eeeeec' align='center'>1</td><td bgcolor='#eeeeec' align='center'>0.0006</td><td bgcolor='#eeeeec' align='right'>372112</td><td

阅读 3.5k
4 个回答

后端返回的就是html吧,不是json数据

出bug了,有warning提醒。让管后端的检查一下代码。

服务器返回的不是简单的数据,可能是后端返回的数据有问题

这是因为php运行出错了,错误信息中本身有一些html

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题