9***@qq.com
9***@qq.com
  • 发布:2017-08-31 11:38
  • 更新:2017-08-31 11:38
  • 阅读:1293

数据库中无数据 就会一直刷新 报这个错误 但是有数据,会显示,依旧报错,但不会一直刷新转圈 求问怎么解决,或者可以让转圈停止显示无数据也可以

分类:MUI

错误是:[ERROR] : TypeError: refreshpos.endPullUpToRefresh is not a function. (In 'refreshpos.endPullUpToRefresh(true)', 'refreshpos.endPullUpToRefresh' is undefined)
这是一部分代码,求帮忙看下应该怎么接解决
function get_more(refreshpos, ul, index, count, resver) {
view.AppHttpService({
action: 'work.php',
data: {
userid: uarr.user_id,
action: action,
positi: length,
pagenum: count
}
}, function(response) {
if(response.code == '102') {
refreshpos.endPullUpToRefresh(true);
console.log
} else {
refreshpos.endPullUpToRefresh(true);
//mui.toast(response.message);
//更新失败还原状态
}
ul.innerHTML = ul.innerHTML + html;

})
}

2017-08-31 11:38 负责人:无 分享
已邀请:

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