引用 4 楼 xuzuning 的回复:那你在 Action.class.php 的 319 行的 exit(json_encode($result)); 前,执行 file_put_contents('test.txt', print_r($result,1)); 看看 test.txt 中是否有 <pre> 标记 我加了这一段 file_put_conten……
那你在 Action.class.php 的 319 行的 exit(json_encode($result)); 前,执行 file_put_contents('test.txt', print_r($result,1)); 看看 test.txt 中是否有 <pre> 标记
<pre> 标签也是返回的内容吗?那你需要调整你的 php 代码,不能输出 json 以外的内容 thinkphp 有 ajax 支持,请使用
52,797
社区成员
25,305
社区内容
加载中
试试用AI创作助手写篇文章吧