x***@tops001.com
x***@tops001.com
  • 发布:2016-06-06 10:19
  • 更新:2016-06-06 10:19
  • 阅读:1185

上拉刷新callback里面不能带参数吗?

分类:MUI

var pageIndex = 1,type = 2;  

    mui.init({  
        pullRefresh: {  
            container: '#pullrefresh',  
            up: {  
                contentrefresh: '正在加载...',  
                callback: pullupRefresh(pageIndex,type)  
            }  
        }  
    });  

    function pullupRefresh(pageIndex,type) {  
       .....//业务代码  
    }  

这样会直接报错: Cannot read property 'classList' of undefined

2016-06-06 10:19 负责人:无 分享
已邀请:

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