如何实时预览我的网站

发布于 2024-12-14 06:12:14 字数 241 浏览 6 评论 0原文

cssdesk、jsbin 等在与代码并排显示实时预览方面做得非常出色。我想知道是否有办法获得实时预览。

理想情况下,我会在一台显示器上打开文本编辑器或 ide,在另一台显示器上打开浏览器,当我在 ide 中调整代码并保存文档时,浏览器会感知到更改并更新页面。

这是否需要构建为浏览器扩展,也许它可以用 JavaScript 构建并免费提供给任何想要使用它的开发人员。

我觉得这对于萤火虫之类的东西来说是一个很棒的功能。

cssdesk, jsbin and such do a wonderful job of showing a live preview side by side with your code. I wonder if there is a way to just get the live preview.

Ideally, I would open my text editor or ide on one monitor, and a browser on another monitor, and while I adjust the code in my ide, and save my document, the browser would sense the change, and update the page.

Would this need to built as a browser extension, maybe it can be built in javascript and offered for free to any developer who would like to use it.

I feel like this would be a great feature for firebug or something.

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

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

发布评论

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

评论(1

放飞的风筝 2024-12-21 06:12:14

LiveJS 正是这样做的:

http://livejs.com/

There is LiveJS, which does exactly this:

http://livejs.com/

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