是否可以使用Ajax刷新网站 [英] Is it possible that refresh website using ajax

查看:70
本文介绍了是否可以使用Ajax刷新网站的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们可以使用ajax刷新整个网站以反映数据吗?

can we refresh whole website using ajax to reflect the data

推荐答案

那不是真正的Ajax,因为使用了它,因此整个网站都没有.无需刷新,仅从服务器检索特定数据.您可以简单地使用元刷新,如下所示(每10秒刷新一次):

That wouldn''t be actual Ajax because that is used so the complete site doesn''t need to be refreshed and retrieve only specific data from the server. You could simply use a meta refresh, something like this (refresh every 10 seconds):

<meta http-equiv="refresh" content="10"> </meta>



请查看此链接以获取更多信息:
http://www.htmlgoodies.com/tutorials/getting_started/article. php/3479551/Reloading-The-Page.htm [ ^ ]

祝你好运!



Check out this link for more info:
http://www.htmlgoodies.com/tutorials/getting_started/article.php/3479551/Reloading-The-Page.htm[^]

Good luck!


这篇关于是否可以使用Ajax刷新网站的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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