0
我正在尝试刷新使用location.reload(true)
的jQuery Mobile页面,但是在这个特定的jQuery Mobile视图中,我需要一个变量来持续刷新。有人知道我可以做到这一点吗?提前致谢!刷新jQuery Mobile页面
我正在尝试刷新使用location.reload(true)
的jQuery Mobile页面,但是在这个特定的jQuery Mobile视图中,我需要一个变量来持续刷新。有人知道我可以做到这一点吗?提前致谢!刷新jQuery Mobile页面
我们可以使用'pageshow'而不是location.reload(true)。
$("#dividofpagecontainer").trigger('pageshow');
它可以帮助我,当我与同一页刷新斗争。
您是否可以重新获取页面,并将该变量包含为查询字符串的一部分? – 2012-07-29 03:50:48
@MikeHedman我正在考虑只使用cookies和sessionStorage实际上.. – Apollo 2012-07-29 03:51:21
如果你可以推定cookie被允许,或者html5被支持,那么当然这是最干净的方式。 – 2012-07-29 03:54:15