本文介绍了Chrome是否具有“脱机工作”功能?选项?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图在我的html5缓存清单中测试我的备用页面。为了做到这一点,我宁愿不必切断互联网连接。我听说它在Chrome中不能正常工作,所以我需要专门测试它。 Chrome能否脱机工作?我已经搜索了设置和可用的扩展名,并且找不到任何内容。 解析方案通过Chrome开发人员工具(Ctrl-Shift-I)具有此功能。点击左上方的Device Mode图标。现在,可以使用屏幕顶部的下拉菜单来模拟设备和网络带宽和延迟(或完全脱机): /i.stack.imgur.com/8LwtD.pngalt =设备和网络选择>



以上屏幕截图来自Chrome版本42.0.2311.60 beta(64

注意:截至2015年4月,不幸的是,这并不影响Websocket连接,它不管网络设置如何都会继续运行。请参阅。

I'm trying to test out my fallback page in my html5 cache manifest. I'd rather not have to actually disconnect from the internet in order to do it. I've heard that it doesn't work quite right in Chrome, so I need to test it specifically. Does Chrome have the ability to work offline? I've searched through the settings and the available extensions, and I can't find anything.

解决方案

It looks like Chrome now has this feature via Chrome developer tools (Ctrl-Shift-I). Click on the "Device Mode" icon at the top-left. Now, a device and network bandwidth and latency (or completely offline) can be simulated using the dropdowns at the top of the screen:

The screenshot above is from Chrome Version 42.0.2311.60 beta (64-bit) on Linux.

NOTE: As of Apr 2015, unfortunately this does not affect Websocket connections, which continue to operate regardless of the Network setting. See https://code.google.com/p/chromium/issues/detail?id=423246.

这篇关于Chrome是否具有“脱机工作”功能?选项?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-25 14:13