当Chrome打包应用程序中的webview尝试加载不存在的本地文件时,我在控制台中收到消息“无法加载资源:net :: ERR_FILE_NOT_FOUND”。 这是预期的,因为该程序应该检查几个不同的位置,从本地系统开始,然后作为第二次尝试切换到远程服务器。
问题是控制台中有很多这些消息,这使得控制台很难用于其他任何事情。
有没有办法关闭此消息?
I get the message "Failed to load resource: net::ERR_FILE_NOT_FOUND" in the console when a webview in a Chrome Packaged App tries to load a non-existent local file. This is expected, because the program is supposed to check a couple of different location, starting with the local system and then switching to a remote server as a second try.
The problem is that there are a lot of these messages in the console, which makes it very difficult to use the console for anything else.
Is there a way to turn this message off?
最满意答案
是的,你可以关闭它:
单击控制台顶部的过滤器图标,然后勾选“隐藏网络消息”。
但是,您无法阻止此错误发生:它不是由JS中未捕获的异常生成的,而是从Chrome的网络堆栈报告的。
Yes, you can turn this off:
Click on the filter icon at the top of the console, and tick "Hide network messages".
You can't, however, prevent this error from happening at all: it's not generated by an uncaught exception in JS but is reported from the network stack of Chrome.
更多推荐
消息,console,local,尝试,电脑培训,计算机培训,IT培训"/> <meta name="descripti
发布评论