M1racle
M1racle
  • 发布:2015-05-10 18:45
  • 更新:2015-05-11 11:09
  • 阅读:1586

上拉加载遇到的问题

分类:MUI

把demo里面的代码

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

            });  
        } else {  
            mui.ready(function() {  
                mui('#pullrefresh').pullRefresh().pullupLoading();  
            });  
        }

放到了我自己练习的项目里面报了这个错误
Uncaught TypeError: Cannot read property 'classList' of undefined at js/mui.js:2474
请问是什么原因?

2015-05-10 18:45 负责人:无 分享
已邀请:
枫桥居APP

枫桥居APP

上拉加载,还不如做个点击加载更多,这样效果也不错

M1racle

M1racle (作者)

问题解决了,原来是id写错一个字母了

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