把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
请问是什么原因?
2 个回复
枫桥居APP
上拉加载,还不如做个点击加载更多,这样效果也不错
M1racle (作者)
问题解决了,原来是id写错一个字母了