as in Javascript is not loaded into dom in jquery mobile

前端 未结 1 655
情歌与酒
情歌与酒 2020-12-07 04:45

I have a page1.html that has a link in it like this:

PAGE2

A part page2.html is like th

1条回答
  •  佛祖请我去吃肉
    2020-12-07 05:30

    Update

    As per your updated question, you can't mix Single Page Model with Multi-Page Model. When you load page2.html first data-role="page and ONLY first one is loaded. Anything else is neglected.

    Example:

    index.html (first page loaded) - All tags within are loaded into DOM whether Ajax is enabled or disabled.

    
      
        
      
      
        
      
    
    

    page2.html - All tags are neglected except for FIRST data-role="page" and its' content, when Ajax is enabled.

    
    
      
    
    
    
    
      

    When using Single Page Model and Ajax is enabled, you have to place JS libraries/code for the external page inside

    .

    jQuery Mobile loads external pages via Ajax, it loads ONLY first

    in and neglects any other tags out side page div.

    0 讨论(0)
提交回复
热议问题