灵媒
灵媒
  • 发布:2016-05-28 09:58
  • 更新:2016-05-28 10:07
  • 阅读:1349

on绑定失效

分类:MUI
mui
    bmomesHTML = bmomesHTML + '<ul class="mui-table-view" style="" id="table' + Btypes[i].id + '">';  
                    };                    
                    for (var j = 0; j < bmomes.length; j++) {                             
                        if (bmomes[j].btype.indexOf(Btypes[i].id) >= 0) {  
                            bmomesHTML = bmomesHTML + '<div class = "mui-card"><li class="mui-table-view-cell" id="' + bmomes[j].id + '">';  
                            bmomesHTML = bmomesHTML + '<img class="mui-media-object mui-pull-left" src="' + bmomes[j].img + '" />';  
                            bmomesHTML = bmomesHTML + '<div class="mui-media-body">';  
                            bmomesHTML = bmomesHTML + '<p class="mui-ellipsis">';  
                            bmomesHTML = bmomesHTML + '<span class="car-name">' + bmomes[j].name + '</span>';  
                            bmomesHTML = bmomesHTML + '<span class="mui-h5 mui-pull-right">已服务' + bmomes[j].scount + "人 " + bmomes[j].score + "分";  
                            bmomesHTML = bmomesHTML + '</p><p class="mui-ellipsis car-title">' + bmomes[j].title;  
                            bmomesHTML = bmomesHTML + '</p><p class="mui-ellipsis">';  
                            bmomesHTML = bmomesHTML + '<span class="mui-h5">' + bmomes[j].address + "</span>";  
                            bmomesHTML = bmomesHTML + '<span class="mui-h5 mui-pull-right">' + bmomes[j].distance + "米</span>";  
                            bmomesHTML = bmomesHTML + '</p></div></li></div>';  
                        }     
                    };        
                    bmomesHTML = bmomesHTML + '</ul>'; 

使用mui('.mui-table-view').on('tap', '.mui-table-view-cell', function(e) {没有反应,为什么?应该怎么写?

2016-05-28 09:58 负责人:无 分享
已邀请:
灵媒

灵媒 (作者)

orderesHTML = orderesHTML + '<div class="mui-card"><li class="mui-table-view-cell" id="' + orderes[i].id + '">';  
                    orderesHTML = orderesHTML + '<div class="mui-slider-cell">';  
                    orderesHTML = orderesHTML + '<div class="oa-contact-cell mui-table">';  
                    orderesHTML = orderesHTML + '<div class="oa-contact-avatar mui-table-cell">';  
                    orderesHTML = orderesHTML + '<img src="' + orderes[i].img + '" />';  
                    orderesHTML = orderesHTML + '</div>';  
                    orderesHTML = orderesHTML + '<div class="mui-table-cell">';  
                    orderesHTML = orderesHTML + '<div class="mui-clearfix">';  
                    orderesHTML = orderesHTML + '<h4 class="oa-contact-name">' + orderes[i].name + '</h4>';  
                    orderesHTML = orderesHTML + '<span class="mui-h6">' + orderes[i].title + '</span>';  
                    orderesHTML = orderesHTML + '</div>';  
                    orderesHTML = orderesHTML + '<p class="mui-h6">' + orderes[i].serverdate + "&nbsp;&nbsp;" + orderes[i].begintime + "-" + orderes[i].endtime;  
                    orderesHTML = orderesHTML + '</p><p class="mui-h6">' + orderes[i].btypename + "&nbsp;&nbsp;从" + orderes[i].beginaddress + "到" + orderes[i].endaddress;  
                    orderesHTML = orderesHTML + '</p></div></div></div></li></div>';

这个就没问题

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