Refreshing an HTML page

Possible Duplicate:
How can I refresh a page with JQuery?

How can I possibly trigger a reload of a page using either something in Django views.py or with Jquery? Basically, I want the page to automatically reload the same way when you click on the URL bar of a web browser and press enter does.

Thanks, Alex


在JavaScript中,您可以刷新页面,如下所示:

window.location.reload()

Don't go overboard with automatic full page refreshes; they're expensive. Consider performing AJAX calls at a reasonable interval to refresh just the information you need.

链接地址: http://www.djcxy.com/p/28664.html

上一篇: 在jQuery中Ctrl + F5清除浏览器缓存

下一篇: 刷新一个HTML页面