ajax 加载外部数据时,控制台显示:XHR完成加载

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/10041468/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-06 10:44:40  来源:igfitidea点击:

When loading external data, console says: XHR finished loading

ajaxgoogle-chromeconsolexmlhttprequestgoogle-chrome-devtools

提问by Kriem

Is there a way to hide the "XHR finished loading"messages in the console?

有没有办法隐藏"XHR finished loading"控制台中的消息?

回答by Rob W

Yes, open the contextmenu in the console, and remove the check at Log XMLHttpRequests.

是的,在控制台中打开上下文菜单,然后删除Log XMLHttpRequests.

You can still inspect the network traffic at the Network tab.

您仍然可以在“网络”选项卡中检查网络流量。

回答by Sandeep Manne

There is some workaround posted in chromium issue tracker http://code.google.com/p/chromium/issues/detail?id=15472

铬问题跟踪器http://code.google.com/p/chromium/issues/detail?id=15472 中发布了一些解决方法

Which version of chrome you are using? In my console there is checkbox to enable or diable log XMLHTTPRequests I am using 17.0.963.79

您使用的是哪个版本的 chrome?在我的控制台中有一个复选框来启用或禁用日志 XMLHTTPRequests 我正在使用 17.0.963.79