在 Meteor www.meteor.com ,每次您保存 HTML/Javascript/CSS 时,它都会将更改推送到浏览器,因此 **您无需手动刷新浏览器。
有没有办法可以在标准的node.js环境中做到这一点而不使用meteor?
在 PHP/Java 环境中呢?
最佳答案
我没试过,但是LiveJS.com可能会起作用。
来自文档:
Just include Live.js and it will monitor the current page including local CSS and Javascript by sending consecutive HEAD requests to the server. Changes to CSS will be applied dynamically and HTML or Javascript changes will reload the page.
关于node.js - 热推网站代码ala Meteor,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10463534/