河马哥
河马哥
  • 发布:2016-12-02 17:33
  • 更新:2016-12-02 17:33
  • 阅读:1166

下拉刷新时取消不了怎么办

分类:MUI

$.ready(function() {
//循环初始化所有下拉刷新,上拉加载。
$.each(sel, function(index, pullRefreshEl) {
var num = this.getAttribute('index');

                    $(pullRefreshEl).pullToRefresh({  
                        down: {  
                            callback:function(){  
                                mui.ajax('en',{  
                                    data:{},  
                                    dataType:'json',  
                                    type:'get',  
                                    success:function(data){  
                                        var table = document.getElementById('table')  
                                        var text = data.rows[0].content;  
                                        var alg = document.createElement("a");  
                                        alg.innerHTML = text;  
                                        table.insertBefore(alg,table.firstChild);  
                                        alert(sel[num].innerHTML);  
                                    }  

                                })  

                            }  
                        }  
                    });  

                });  
            });
2016-12-02 17:33 负责人:无 分享
已邀请:
河马哥

河马哥 (作者)

大神们求指导啊

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