Datatables-使用img标记时分页和筛选不起作用
例如,我们有一个表,里面有Datatables-使用img标记时分页和筛选不起作用,datatables,Datatables,例如,我们有一个表,里面有img标记: <table class="table table-responsive table-striped table-hover" id="my-table"> <thead> <tr> <th>Name</th> <th>Icons</th> </tr> </thead> <tbody> <tr>
img
标记:
<table class="table table-responsive table-striped table-hover" id="my-table">
<thead>
<tr>
<th>Name</th>
<th>Icons</th>
</tr>
</thead>
<tbody>
<tr>
<td>Some Name</td>
<td>
<a href="#"><img src="some.png"></a>
</td>
</tr>
</tbody>
当有很多表行时,分页或过滤输入字段都会显示。并且所有表行都显示在同一页中
没有img
标记时,表工作正常
我正在使用
dataTables.bootstrap.min.js
和jquery.dataTables.min.js
请说明如何初始化该表。@davidkonrad oh忘记了这一点。请看更新后的帖子
$('#my-table').DataTable({"ordering": false});