刷新jQuery Mobile页面

时间:2012-07-29 01:53:07

标签: jquery-mobile

我正在尝试使用location.reload(true)刷新jQuery Mobile页面,但是在这个特定的jQuery Mobile视图中,我需要一个变量来保持刷新。有谁知道我怎么做到这一点?提前谢谢!

1 个答案:

答案 0 :(得分:0)

我们可以使用'pageshow'而不是location.reload(true)。

$("#dividofpagecontainer").trigger('pageshow'); 

当我用同样的页面刷新时,它帮助我。