Liveserver(Ritwick Dey)在检查元素期间不重新加载

发布于 2025-01-31 16:48:30 字数 367 浏览 5 评论 0原文

新的开发人员在这里,我在Vscode中与Liveserver有问题。

当我在Chrome上打开Liveserver并进行更改时,它将毫无问题地重新加载,但是当我检查元素时,该页面并对我的HTML进行了一些更改,然后保存它,Liveerver不会重新加载并弹出“否互联网”页面。然后,左下角将显示“ html.offline”。

我从我在线看到的内容(没有成功)尝试了:

  • 将扩展设置更改为“使用本地IP”。
  • 在设置中添加了“ liveserver.settings.port”:5501”。json
  • 和重新安装了ext。
  • 更新了ext。

是否有人知道可能会导致问题?

禁用

New dev here, I'm having issues with my LiveServer in VSCode.

When I open the LiveServer on Chrome and make changes, it'll reload without any problems however, when I inspect element the page and make some changes to my HTML and then save it, the LiveServer doesn't reload and pops up the "No Internet" page. The bottom left will then show "html.offline".

What I've tried (without success) from what I've seen online:

  • Changed the extension setting to "Use Local Ip".
  • Added "liveServer.settings.port":5501" in the Settings.json
  • Disabled and reinstalled ext.
  • Updated ext.

Is there anything else someone may know that could be causing the problem?

Thank you in advance! :)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

强辩 2025-02-07 16:48:30

尝试将镀铬开发工具的节流设置为“无防潮”。我这样做了,我的工作工作了。
按Ctrl+Shift+M,然后在顶部工具栏设置为无节流。

try setting your throttling in chrome dev tools to "No throttling". I did this and mine worked.
Press Ctrl+Shift+M then at the top toolbar set to no throttling.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文