卧听夏蝉---app_trace和xmlhttp.responseText的关系

今天贴吧功能突然出了错,在debug的时候看到xmlhttp.responseText返回的字符串中多了很多东西,正常应该返回:

string(466) "[{"reply_id":0,"message_id":8,"content":"ssssssssssssssss","name":"\u5218\u7545","type":"\u5b66\u751f","update_time":"2019-05-29","create_time":"2019-05-29"},{"reply_id":0,"message_id":8,"content":"sssssssssssssss","name":"\u5218\u7545","type":"\u5b66\u751f","update_time":"2019-05-29","create_time":"2019-05-29"},{"reply_id":0,"message_id":8,"content":"wwwwwwwwwww","name":"\u5218\u7545","type":"\u5b66\u751f","update_time":"2019-05-29","create_time":"2019-05-29"}]"
[{"reply_id":0,"message_id":8,"content":"ssssssssssssssss","name":"\u5218\u7545","type":"\u5b66\u751f","update_time":"2019-05-29","create_time":"2019-05-29"},{"reply_id":0,"message_id":8,"content":"sssssssssssssss","name":"\u5218\u7545","type":"\u5b66\u751f","update_time":"2019-05-29","create_time":"2019-05-29"},{"reply_id":0,"message_id":8,"content":"wwwwwwwwwww","name":"\u5218\u7545","type":"\u5b66\u751f","update_time":"2019-05-29","create_time":"2019-05-29"}]

这样的字符串,然而最后返回的是:

在这里插入图片描述
可以看到后面多了很多的html代码。
原来是我在昨天调试的时候把config.php配置文件下的‘app_trace’功能给设置为true了所以在打印的时候就会显示这种数据流。将其设置为false问题解决。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值