延迟GAE重定向 [英] GAE redirection with a delay
本文介绍了延迟GAE重定向的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有可能在GAE中延迟重定向到另一个网址吗?我知道我可以使用JavaScript来达到这个目的,但是可能有没有办法做延迟重定向的方法?
现在我使用GAE教程中的 self.redirect(/)
。
Thanks。
Is that possible to redirect to another url with a delay in GAE? I know I can use JavaScript for this purpose, but may be there is a way to do delayed redirection without it?
Now I use self.redirect("/")
from GAE tutorial.
Thanks.
推荐答案
您可以使用< meta http-equiv =刷新content =x; url = http:// yoururl />
tag其中x是重定向之前等待的秒数。
这个标签会出现在< head>
部分生成的页面中。
You can use the <meta http-equiv="refresh" content="x;url=http://yoururl/">
tag where x is the number of seconds to wait before redirect.
This tag would go in <head>
part of the generated page.
这篇关于延迟GAE重定向的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文