2016-05-30 12 views
1

$ Schnipsel ({ Typ: "POST", async: false, url: SerURL + "/ login", Artikel

  1. Liste

    dataType : "json", 
        contentType:"application/json", 
        data:JSON.stringify(data1), 
        success : function(data){ 
        console.log('success'); 
        console.log(data); 
        if(data.status=="20000"){ 
         $.mobile.changePage($("#page2")); 
        } 
        } 
    }); 
    

warum $ .mobile.changePage() nicht?

+0

aktuelle URL: http: // localhost: 8080/login change URL: http: // localhost: 8080/page2 aber bereit URL: http: // localhost: 8080/login/#/page2 so nicht change zu. –

Antwort

0

$ .mobile.changePage Arbeits ist seit jQuery Mobile 1.4.0 veraltet und wird in 1.5.0 entfernt.

Versuchen pagecontainer Widgets ändern() -Methode statt:

$("body").pagecontainer("change", "page2", { options... }); 

Ich hoffe, das hilft Ihnen!