Google Chrome 将 JSON AJAX 响应显示为树而不是纯文本 [英] Google Chrome display JSON AJAX response as tree and not as a plain text
问题描述
我找不到这个问题的答案:
I cannot find an answer to this one:
我的 AJAX 调用返回 JSON 数据.在 Google Chrome 开发者工具 >资源 >XHR 当我单击左侧的资源,然后单击内容选项卡时,我将 JSON 字符串视为字符串,而不是像 Firebug 和 Firebug Lite 那样的树.
My AJAX calls return JSON data. In Google Chrome Developer Tools > Resources > XHR when I click on the resource on the left and then on the Content tab I see the JSON string as a string and not as a tree as Firebug and Firebug Lite do.
如何强制 Chrome 将其显示为树.是否有我的 PHP 文件必须具有的内容类型???
How do I force Chrome to display it as a tree. Is there a Content-type that my PHP file must have???
推荐答案
要在最新版本的 Chrome 中查看树视图:
To see a tree view in recent versions of Chrome:
导航到开发者工具 > 网络 > 给定的响应 > 预览
Navigate to Developer Tools > Network > the given response > Preview
这篇关于Google Chrome 将 JSON AJAX 响应显示为树而不是纯文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!