Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ajax/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在ajax$.mobile.changePage中不工作_Ajax_Jquery Mobile - Fatal编程技术网

在ajax$.mobile.changePage中不工作

在ajax$.mobile.changePage中不工作,ajax,jquery-mobile,Ajax,Jquery Mobile,$.ajax({ 类型:“POST”, async:false, url:SerURL+“/登录” 列表项 dataType : "json", contentType:"application/json", data:JSON.stringify(data1), success : function(data){ console.log('success'); console.log(data); if(data.status=="20000"){

$.ajax({ 类型:“POST”, async:false, url:SerURL+“/登录”

  • 列表项

      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"));
        }
      }
    });
    

  • 为什么$.mobile.changePage()无法工作?

    $.mobile.changePage从jQuery mobile 1.4.0开始就被弃用,并将在1.5.0中删除

    尝试改用pagecontainer小部件的change()方法:

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

    我希望这对您有所帮助!

    $.mobile.changePage从jQuery mobile 1.4.0开始就被弃用,并将在1.5.0中删除

    尝试改用pagecontainer小部件的change()方法:

    $("body").pagecontainer("change", "page2", { options... });
    
    我希望这对您有所帮助!

    当前URL:changePage URL:但准备好的URL:所以不要将页面更改为。当前URL:changePage URL:但准备好的URL:所以不要将页面更改为。