如何让我的文件更改Firefox的自动刷新? [英] How do I make Firefox auto-refresh on file change?

查看:266
本文介绍了如何让我的文件更改Firefox的自动刷新?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有谁知道一个Firefox扩展或脚本或一些其他的机制,可以监控一个或多个本地文件。火狐会当它检测到文件(S)。

Does anyone know of an extension for Firefox, or a script or some other mechanism, that can monitor one or more local files. Firefox would auto-refresh or otherwise update its canvas when it detected a change (of timestamp) in the files(s).

有关编辑CSS,这将是理想的,如果仅仅是CSS可以重新加载,而不是一个完整的HTML重新渲染。

For editing CSS, it would be ideal if just the CSS could be reloaded, rather than a full HTML re-render.

有效这将使类似的行为只能通过外部文件与它的动态HTML / CSS编辑萤火虫。

Effectively it would enable similar behaviour to Firebug with its dynamic HTML/CSS editing, only through external files.

推荐答案

Live.js

Live.js

从网站:

如何?
  只是包括Live.js,它会监视包括本地CSS和Javascript通过发送连续的HEAD请求到服务器的当前页。更改CSS动态应用和HTML或JavaScript的变化将重新加载页面。试试吧!

How? 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. Try it!

在哪里?
  Live.js工作在火狐,Chrome,Safari浏览器,Opera和IE6 +,直到证明并非如此。 Live.js是独立于您使用的开发框架或语言,无论是红宝石,手工制作,Python和Django的,.NET,Java,PHP和Drupal的是,Joomla或者什么具备的,你。

Where? Live.js works in Firefox, Chrome, Safari, Opera and IE6+ until proven otherwise. Live.js is independent of the development framework or language you use, whether it be Ruby, Handcraft, Python, Django, NET, Java, Php, Drupal, Joomla or what-have-you.

它与 IETester 工作,动态刷新每个打开IE标签的巨大的好处。

It has the huge benefit of working with IETester, dynamically refreshing each open IE tab.

尝试一下通过添加以下到你的< HEAD>

Try it out by adding the following to your <head>

<script type="text/javascript" src="http://livejs.com/live.js"></script>

这篇关于如何让我的文件更改Firefox的自动刷新?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆