m***@vip.qq.com
m***@vip.qq.com
  • 发布:2019-03-15 18:03
  • 更新:2020-05-21 16:28
  • 阅读:1383

【求助】上下拉刷新报错

分类:MUI


代码:

if(mui.os.plus) {
mui.plusReady(init);
} else {
init();
}
//初始化
function init(){
mui.init({
pullRefresh: {
container: "#refreshContainer",
down: {
style:"circle",
height: '50',
auto: false,
contentdown : "下拉可以刷新",
contentover : "释放立即刷新",
contentrefresh : "正在刷新...",
callback: freshList
},
up: {
height: '50',
auto: true,
contentrefresh : "正在加载...",
contentnomore:'没有更多数据了',
callback: getLabelList
}
},
});
}

2019-03-15 18:03 负责人:无 分享
已邀请:
m***@vip.qq.com

m***@vip.qq.com (作者)

有人知道吗
Uncaught InvalidCharacterError: Failed to execute 'setAttribute' on 'Element': 'data-pullrefresh-plus-list0.html?id=0e3764c1adcb46ea94cf7940f0ecba75&title=消息中心' is not a valid attribute name. at js/mui.js:5500

代码是拷贝过来的,另外一个项目是正确的

4***@qq.com

4***@qq.com - 嗯嗯

请问你这个报错怎么解决的呢?

4***@qq.com

4***@qq.com

很明显是有一个element未定义,找不到,排查代码

1***@qq.com

1***@qq.com

请问您这个问题是怎么解决的呢?

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