如何在移动设备上使用http-equiv刷新? [英] How to use http-equiv refresh on mobile?

查看:60
本文介绍了如何在移动设备上使用http-equiv刷新?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在移动浏览器中刷新HTML5页面?我在桌面版本中使用了它,并且工作正常:

How can I refresh a HTML5 page in a mobile browser? I use this in desktop version and working fine:

<meta http-equiv="refresh" content="60;url=http://www.example.com" />

有什么方法可以在移动浏览器中使用类似的东西?如果相关的话,我也使用jquery mobile.

There is any way to use something like this in mobile browser? I using jquery mobile too if this is relevant.

推荐答案

我已经使用JavaScript解决了这个问题.它可以在Android上正常运行,我想我已经在Opera Mobile中对其进行了测试(不确定).

I've used JavaScript for solving this. It's working fine on Android, and I think I've tested it in Opera Mobile (I'm not sure).

我的代码是这样的:

setTimeout(function() {
location.replace('./order_list');
}, 5000);

这篇关于如何在移动设备上使用http-equiv刷新?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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