【发布时间】: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