jQuery Mobile Page refresh mechanism

前端 未结 6 1180
小鲜肉
小鲜肉 2020-11-30 02:23

I\'m having a lot of pain understanding how jQuery Mobile handles pages refresh after an ajax update.

I\'m having a two pages - unique file site: a search engine.

6条回答
  •  长情又很酷
    2020-11-30 02:33

    function refreshPage()
    {
        jQuery.mobile.changePage(window.location.href, {
            allowSamePageTransition: true,
            transition: 'none',
            reloadPage: true
        });
    }
    

    Taken from here http://scottwb.com/blog/2012/06/29/reload-the-same-page-without-blinking-on-jquery-mobile/ also tested on jQuery Mobile 1.2.0

提交回复
热议问题