Chrome - >检查元素 - >网络(XHR) - >预览选项卡(HTML)问题 [英] Chrome -> Inspect element -> Network (XHR) -> Preview Tab (HTML) issue

查看:304
本文介绍了Chrome - >检查元素 - >网络(XHR) - >预览选项卡(HTML)问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在网络部分的预览标签中遇到问题。当HTML返回时,我在预览和响应中都看到了原始HTML。有时,但很少,我的HTML在预览选项卡中正确呈现。



我做错了什么或只是一些Chrome的bug?

谢谢

解决方案

我也在测试这个。这对我来说是添加了http头。

  header('HTTP / 1.1 500 Internal Server Error'); 

当然有一些正确的标记格式。但状态码是我需要说服chrome来呈现预览的。


I am having a problem with that preview tab in network section. When HTML is returned I am seeing the raw HTML in both preview and response. Sometimes, but very rarely, I HTML is rendered properly in Preview tab.

Am I doing something wrong or it's just some Chrome bug?

Thanks

解决方案

I was testing this as well. What did it for me was adding the http header.

header('HTTP/1.1 500 Internal Server Error');

Then of course some proper markup formatting. But the status code was what I needed to convince chrome to render the preview.

这篇关于Chrome - >检查元素 - >网络(XHR) - >预览选项卡(HTML)问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆