谷歌浏览器显示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数据。在谷歌Chrome开发人员工具>资源>当我点击的资源左侧,然后在内容选项卡上XHR我看到JSON字符串作为一个字符串,而不是一棵树的萤火虫和Firebug的精简版做的。
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.
如何强制浏览器以diplay它作为一棵树。是否有一个内容类型,我的PHP文件必须具有???
How do I force Chrome to diplay it as a tree. Is there a Content-type that my PHP file must have???
我会高兴地知道答案!
感谢您 Stefanos的
Thank you Stefanos
推荐答案
要看到在最近的Chrome版本的树形视图:
To see a tree view in recent versions of Chrome:
导航到开发工具>网络>给定的响应> preVIEW
Navigate to Developer Tools > Network > the given response > Preview
这篇关于谷歌浏览器显示JSON Ajax响应的树,而不是作为一个纯文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!