如何每十秒刷新一次页面? [英] how to refresh my page every ten seconds?

查看:98
本文介绍了如何每十秒刷新一次页面?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人可以帮助我每10秒刷新一次PHP页面吗?

can someone help me with code to refresh my PHP pages every ten seconds?

推荐答案


有人可以帮助我用代码每隔十秒刷新一次PHP页面?
can someone help me with code to refresh my PHP pages every ten seconds?



没有PHP页面,只有HTML页面,由PHP构造并发送给客户端。


你可以使用语句

There are no PHP pages, just HTML pages, ''constructed'' by PHP and send to the client.

You could use statement

展开 | 选择 | Wrap | 行号



有人可以帮助我使用代码来刷新我的PHP每十秒一页?
can someone help me with code to refresh my PHP pages every ten seconds?



使用元标记[html]< meta http-equiv =" refresh"含量=" 10" />

< meta http-equiv =" cache-control"含量= [否缓存" /> [/ html]或使用 setTimeout 调用刷新页面的函数。

Either use the meta tag[html]<meta http-equiv="refresh" content="10" />
<meta http-equiv="cache-control" content="no-cache" />[/html]Or use setTimeout to call a function which refreshes your page.

展开 | 选择 | Wrap | 行号


[quote = hsriat]使用元标记[html]< meta http-equiv =" refresh"含量=" 10" />

< meta http-equiv =" cache-control"含量= [否缓存" /> [/ html]或使用 setTimeout 调用刷新页面的函数。
[quote=hsriat]Either use the meta tag[html]<meta http-equiv="refresh" content="10" />
<meta http-equiv="cache-control" content="no-cache" />[/html]Or use setTimeout to call a function which refreshes your page.
展开 | 选择 | Wrap | 行号


这篇关于如何每十秒刷新一次页面?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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