Popups common to all pages in jQuery Mobile site

前端 未结 3 1172
鱼传尺愫
鱼传尺愫 2020-12-30 17:23

I am trying to make a site using jQuery Mobile. It consists of many pages in HTML files, some of which have only one page, and some of which have several pages (using their

3条回答
  •  半阙折子戏
    2020-12-30 18:26

    you would have to try and set it up like the jqm loader, which also resides outside of the div.page (otherwise you would have one loader per page inside the dom), so i think the right approach would be to not include the popup within a page, but outside the div.page.

    as jqm will only pull in div.pages and nothing before/after you should be able to include a generic popover on every page and only have it in the dom once. not sure this is working though outside div.page.

提交回复
热议问题