Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试使用 刷新 jQuery Mobile 页面location.reload(true),但是在这个特定的 jQuery Mobile 视图中,我需要一个变量来保持刷新。有人知道我如何做到这一点吗?提前致谢!
location.reload(true)
我们可以使用 'pageshow' 代替 location.reload(true)。
$("#dividofpagecontainer").trigger('pageshow');
当我在刷新同一页面时遇到困难时,它可以帮助我。