【问题标题】:dataTable not able to paginate after reloading in meteor在流星中重新加载后数据表无法分页
【发布时间】:2016-09-26 21:10:51
【问题描述】:

我正在使用 dataTables 来设计和分页动态加载数据的表格...我已经在 javascript 中创建了 tr 和 td,例如

html = '<tr>'+
        '<td>'+req.product+'</td>'+
        '<td>'+createdAt+'</td>'+
        '<td>'+req.quantity+'</td>'+
        '<td>'+companyName+'</td>'+
        '<td>'+totQuot+'</td>'+
        '<td>'+totAppQuot+'</td>'+
        '<td><a class="imQuotCount" id="'+req._id+'_totQuot" href="">'+totImQuot+'</a></td>'+
        '<td><a class="imQuotCount" id="'+req._id+'_appQuot" href="">'+appImQuotCount+'</a></td>'+
        '<td><a class="imQuotCount" id="'+req._id+'_unappQuot" href="">'+unappImQuotCount+'</a></td>'+
        '<td><a class="imQuotCount" id="'+req._id+'_rejQuot" href="">'+rejImQuotCount+'</a></td>'+
    '</tr>'

【问题讨论】:

    标签: jquery html meteor datatable


    【解决方案1】:

    所以我猜测问题出在来自数据库的数据上,我很幸运,我的猜测是正确的,我所做的只是在 lib 中,而不是直接单独编写 Meteor.subscribe,我返回了所有 Meteor。订阅为数组......它工作了

    【讨论】:

      猜你喜欢
      • 2015-11-03
      • 2012-11-26
      • 2014-10-22
      • 2023-01-18
      • 1970-01-01
      • 1970-01-01
      • 2012-11-24
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多