jquery-移动旋转器加载

jquery-mobile spinner loading

本文关键字:加载 旋转 移动 jquery-      更新时间:2023-09-26

我试图这样做,而js正在创建一个时间表…显示旋转器加载…

我试图做这个$.mobile.pageLoading(); $.mobile.pageLoading(true); ,也试图使用这个插件http://contextllc.com/tools/jQuery-showLoading

结果是一样的…它显示了生成时间表后的旋转器。我不知道为什么…这里是我试图使用它的地方…

                    $('#timeDropList').change(function() {
                        $.mobile.pageLoading(false);
                        $('div.addedEntry').remove();
                        drawTemplate();
                    });

您使用的是正确版本的jQuery Mobile吗?看起来他们在1.0中取消了pageLoading方法,转而采用两种不同的方法:showPageLoadingMsghidePageLoadingMsg。我最后一次看到pageLoading是在1.0a4.1中。

$('#home').live('pagebeforecreate',function(event){
      alert('This page was just enhanced by jQuery Mobile!');
      $.mobile.loadingMessage = "pagebeforeshow Page...";
      $.mobile.showPageLoadingMsg();
    });