jquery .load() function does not work under phonegap

前端 未结 2 1926
北海茫月
北海茫月 2021-01-25 06:37

jquery .load() function is not working under phonegap on iPad. it works in mobile safari very well. But it\'s not working in Phonegap app. Any help would be appreciated.

2条回答
  •  轮回少年
    2021-01-25 07:01

    I tried this and it worked fine in both the Android emulator and the iOS simulator.

     
    
        
        
        jQuery Remote
        
        
        
    
        
    
        
         
         
    
            

    Page One

    I did notice that when I tried to load an entire HTML document (including head, body, html tags) that I only got a white screen. But when I only try to load part of a document (like just a div within the body, like my third example below) it works fine. I suspect that the browser just does not like the structure:

    
        
        
    
        
            

    I don't blame it, I don't like it either.

提交回复
热议问题