1***@163.com
1***@163.com
  • 发布:2017-03-03 10:20
  • 更新:2017-03-03 10:33
  • 阅读:1848

App第一次启动下拉刷新报错Object #<error> has no method 'pullupLoading'

分类:HTML5+

手机App第一次启动,在引导页面预加载index.html, index页面有6个子页面,预加载index的时候
其他几个子页面跟着index一起创建预加载,其中第一个子页面 和第4个子页面在App第一次启动的时候
自动下来刷新报错Object #<error> has no method 'pullupLoading' ,在init里写auto:true,和

if(mui.os.plus) {  
        mui.plusReady(function() {  
            setTimeout(function() {  
                mui('#pullrefresh1').pullRefresh().pullupLoading();  
            }, 5000);  

        });  
    } else {  
        mui.plusReady(function() {  
            setTimeout(function() {  
            mui('#pullrefresh1').pullRefresh().pullupLoading();  
                }, 200);  
        });  
        }

这种方式都没用
就第一次启动会出现这种问题,第二次启动就没事,这个问题很严重,第一次失败意味着首页白屏,
下拉刷新和上拉加载都用不了,官方给看一下 谢谢

2017-03-03 10:20 负责人:无 分享
已邀请:
1***@163.com

1***@163.com (作者)

第一个子页面 和第二个子页面 这种初始化自动下拉刷新 在App第一次启动高概率会出现Object #<error> has no method 'pullupLoading'这种错 ,有时候只有一个页面报错,有时候两个页面都不行

1***@163.com

1***@163.com (作者)

index.html      预加载  创建的7个子页面   有3个子页面用到双webviwe 的下拉刷新  
mui.plusReady(function() {  
            var self = plus.webview.currentWebview();  
            for(var i = 0; i < 7; i++) {  
                var temp = {};  
                //var sub = plus.webview.create(subpages[i], subpages[i], subpage_style);  
                if(i==0 || i==5){  
                    var sub = plus.webview.create(subpages[i], subpages[i], subpage_style);  
                }else{  
                    var sub = plus.webview.create(subpages[i], subpages[i], subpage_style1);  
                }  
                if(i > 0) {  
                    sub.hide();  
                } else {  
                    temp[subpages[i]] = "true";  
                    mui.extend(aniShow, temp);  
                }  
                self.append(sub);  
            }  

        });
我在第一次启动App的时候  在引导页  预加载index.html  
mui.preload({  
                    url:"html/index.html",  
                    id:"html/index.html"  
                    });  

该问题目前已经被锁定, 无法添加新回复